|
Basilisk CFD
Adaptive Cartesian mesh PDE framework
|
#include <stdlib.h>#include <string.h>#include <stdio.h>#include <math.h>#include <assert.h>#include <sys/types.h>#include <sys/stat.h>#include <sys/time.h>#include <fcntl.h>#include <unistd.h>#include "kdt.h"Go to the source code of this file.
Data Structures | |
| struct | Buffer |
| struct | Node |
| struct | Header |
| struct | _Kdt |
| struct | FilePointers |
Macros | |
| #define | MIN(a, b) ((a) < (b) ? (a) : (b)) |
| #define | MAX(a, b) ((a) > (b) ? (a) : (b)) |
| #define | VERSION 20120405 /* the file format version */ |
| #define | GAP 0.2 |
| #define | MINLEN 6 |
Definition at line 439 of file kdt.c.
Referenced by centroids_curvature_fit(), embed_area_center(), embed_flux(), embed_force(), embed_geometry(), event_viscous_term(), height_curvature_fit(), interface_area(), intersection_area(), line_area(), query_sum(), split(), sum_add_sum(), and zarea().
Definition at line 66 of file kdt.c.
Referenced by kdt_heap_create().
Definition at line 74 of file kdt.c.
References b, and Buffer::ref.
Referenced by kdt_heap_split().
Definition at line 80 of file kdt.c.
Referenced by kdt_heap_free().
Definition at line 368 of file kdt.c.
References x.
Referenced by kdt_init(), and kdt_open().
Definition at line 106 of file kdt.c.
References assert, h, n, sizeof(), and x.
Referenced by kdt_heap_create(), kdt_heap_get(), and kdt_heap_rewind().
Definition at line 123 of file kdt.c.
References assert, h, sizeof(), and x.
Referenced by kdt_heap_flush(), and kdt_heap_put().
Definition at line 856 of file kdt.c.
References area(), intersection, and x.
Referenced by query_sum(), and sum_add_sum().
| int kdt_create | ( | Kdt * | kdt, |
| const char * | name, | ||
| int | blksize, | ||
| KdtHeap * | h, | ||
| void(*)(float complete, void *data) | progress, | ||
| void * | data | ||
| ) |
Definition at line 686 of file kdt.c.
References data, fwrite_check(), h, kdt_heap_resize(), kdt_heap_sort_cost(), kdt_init(), progress, sizeof(), split(), update_bounds(), and x.
Referenced by main().
Definition at line 134 of file kdt.c.
References assert, buffer_new(), fp, h, heap_read(), scalar::i, and x.
Referenced by kdt_heap_split(), main(), and merge().
Definition at line 233 of file kdt.c.
References h, heap_write(), scalar::i, and x.
Referenced by kdt_heap_split(), main(), and merge().
Definition at line 239 of file kdt.c.
References assert, buffer_unref(), h, and x.
Referenced by kdt_heap_split(), merge(), and split().
Definition at line 171 of file kdt.c.
References h, heap_read(), scalar::i, kdt_heap_get(), and p.
Referenced by kdt_heap_get(), kdt_heap_split(), kdt_write(), merge(), put(), update_bounds(), and update_sum().
Definition at line 224 of file kdt.c.
References h, heap_write(), scalar::i, and p.
Referenced by kdt_heap_split(), main(), and put().
Definition at line 91 of file kdt.c.
References assert, h, kdt_heap_rewind(), and x.
Referenced by kdt_create(), and kdt_heap_split().
Definition at line 157 of file kdt.c.
References assert, h, heap_read(), scalar::i, sizeof(), and x.
Referenced by kdt_heap_resize(), kdt_heap_split(), kdt_write(), merge(), update_bounds(), and update_sum().
|
static |
Definition at line 303 of file kdt.c.
References data, h, kdt_heap_sort(), kdt_heap_split(), merge(), progress, sizeof(), and x.
Referenced by kdt_heap_sort(), and split().
Definition at line 332 of file kdt.c.
References m().
Referenced by kdt_create(), and split().
Definition at line 186 of file kdt.c.
References assert, buffer_ref(), h, i, kdt_heap_create(), kdt_heap_flush(), kdt_heap_free(), kdt_heap_get(), kdt_heap_put(), kdt_heap_resize(), kdt_heap_rewind(), kdt_tmpfile(), p, and x.
Referenced by kdt_heap_sort(), and split().
Definition at line 660 of file kdt.c.
References check_32_bits(), open_ext(), VERSION, and x.
Referenced by kdt_create().
Definition at line 723 of file kdt.c.
References check_32_bits(), open_ext(), sizeof(), VERSION, and x.
Referenced by main(), and terrain().
| long kdt_query_sum | ( | const Kdt * | kdt, |
| KdtCheck | includes, | ||
| KdtCheck | intersects, | ||
| void * | data, | ||
| const KdtRect | query, | ||
| KdtSum * | sum | ||
| ) |
Definition at line 1025 of file kdt.c.
References data, f, h, includes(), intersects(), query(), query_sum(), sum, and x.
Referenced by main(), and terrain().
|
static |
Definition at line 468 of file kdt.c.
Referenced by kdt_sum_init(), and update_sum().
Definition at line 254 of file kdt.c.
References fp, h, i, kdt_heap_get(), kdt_heap_rewind(), p, and x.
Definition at line 444 of file kdt.c.
Referenced by fault(), find_coreGL(), okada(), query_sum(), and split().
|
static |
Definition at line 265 of file kdt.c.
References assert, kdt_heap_create(), kdt_heap_flush(), kdt_heap_free(), kdt_heap_get(), kdt_heap_rewind(), put(), and x.
Referenced by kdt_heap_sort().
Definition at line 638 of file kdt.c.
References buf, fname, fp, free(), and x.
Referenced by kdt_init(), and kdt_open().
Definition at line 248 of file kdt.c.
References h, kdt_heap_get(), kdt_heap_put(), p, and x.
Referenced by merge().
Definition at line 782 of file kdt.c.
References i, kdt_intersects(), kdt_rect_write(), n, pos, query(), sizeof(), sizes(), and x.
Referenced by kdt_includes(), kdt_intersects(), kdt_query(), kdt_query_sum(), main(), query(), and query_sum().
|
static |
Definition at line 932 of file kdt.c.
References a, area(), data, f, h, i, includes(), intersection_area(), intersects(), kdt_rect_write(), KdtInterval::l, length(), n, pos, query(), query_sum(), s, sizeof(), sizes(), sum, sum_add_point(), sum_add_sum(), w, vector::x, x, and vector::y.
Referenced by kdt_query_sum(), and query_sum().
Definition at line 389 of file kdt.c.
Referenced by if(), sum_add_point(), and sum_add_sum().
Definition at line 543 of file kdt.c.
References a, area(), assert, fwrite_check(), index, kdt_heap_free(), kdt_heap_sort(), kdt_heap_sort_cost(), kdt_heap_split(), kdt_rect_write(), Node::len1, length(), n, pos, progress, s, sizeof(), sort_x(), sort_y(), split(), union_bound(), update_bounds(), update_sum(), and x.
Referenced by kdt_create(), and split().
|
static |
Definition at line 398 of file kdt.c.
References a, h, o, p, relative(), sum, w, vector::x, and vector::y.
Referenced by query_sum(), and update_sum().
|
static |
Definition at line 863 of file kdt.c.
References a, area(), ha, intersection_area(), op, relative(), sum, w, and x.
Referenced by query_sum().
Definition at line 502 of file kdt.c.
References h, kdt_heap_get(), kdt_heap_rewind(), p, x, and KdtPoint::x.
Referenced by kdt_create(), and split().
Definition at line 478 of file kdt.c.
References assert, GAP, h, i, index, kdt_heap_get(), kdt_heap_rewind(), kdt_sum_core_init(), min, MINLEN, n, p, s, sum_add_point(), and x.
Referenced by split().