|
Basilisk CFD
Adaptive Cartesian mesh PDE framework
|
#include <stdio.h>#include <assert.h>Go to the source code of this file.
Data Structures | |
| struct | Point |
Macros | |
| #define | GRIDNAME "Linear quadtree" |
| #define | _I (quad_x(point.i)) |
| #define | _J (quad_y(point.i)) |
| #define | data(k, l) point.d[quad_neighbor(point.i, k, l)] |
| #define | quad(n, d) ((((n|quad_bottom)+(d&quad_left))&quad_left)|(((n|quad_left)+(d&quad_bottom))&quad_bottom)) |
| #define | STACKSIZE 20 |
| #define | _push(c, d) { _s++; stack[_s].i = c; stack[_s].stage = d; } |
| #define | _pop(c, d) { c = stack[_s].i; d = stack[_s].stage; _s--; } |
| #define | foreach(grid) |
| #define | end_foreach() |
Functions | |
| static int | size (int l) |
| int | level (int p) |
| int | code (int p, int l) |
| int | index (int code, int l) |
| int | quad_x (int p) |
| int | quad_y (int p) |
| int | repeat (int a) |
| int | quad_neighbor (int p, int i, int j) |
| int | quad_neighbor_finest (int p, int i, int j) |
| void * | quadtree (int r, size_t s) |
| void * | init_grid (int n) |
| void | free_grid (void *m) |
Variables | |
| static int | quad_r |
| static int | quad_left |
| static int | quad_right = 1 |
| static int | quad_top = 2 |
| static int | quad_bottom |
| static int | quad_id [3][3] |
| #define end_foreach | ( | ) |
| #define quad | ( | n, | |
| d | |||
| ) | ((((n|quad_bottom)+(d&quad_left))&quad_left)|(((n|quad_left)+(d&quad_bottom))&quad_bottom)) |
Definition at line 103 of file linear.h.
References q, quad_bottom, quad_id, quad_left, quad_r, quad_right, quad_top, repeat(), s, size, and x.
Referenced by init_grid().
|
static |
Definition at line 78 of file linear.h.
Referenced by quadtree().
|
static |
Definition at line 82 of file linear.h.
Referenced by quad_neighbor(), quad_neighbor_finest(), and quadtree().
|
static |
Definition at line 78 of file linear.h.
Referenced by quadtree().
|
static |
Definition at line 29 of file linear.h.
Referenced by code(), index(), quad_neighbor(), quad_neighbor_finest(), quad_x(), quad_y(), quadtree(), and repeat().
|
static |
Definition at line 78 of file linear.h.
Referenced by quadtree().
|
static |
Definition at line 78 of file linear.h.
Referenced by quadtree().