|
Basilisk CFD
Adaptive Cartesian mesh PDE framework
|
Go to the source code of this file.
Data Structures | |
| struct | _Memindex |
Macros | |
| #define | Memindex struct _Memindex * |
| #define | mem_data(m, i, j) ((m)->b[i][j]) |
Functions | |
| static const bool | mem_allocated (const struct _Memindex *m, const int i, const int j) |
The mem_data() macros return the data stored at a specific (multidimensional) index. | |
| struct _Memindex * | mem_new (int len) |
The mem_new() function returns a new (empty) Memindex. | |
| void | mem_destroy (struct _Memindex *m, int len) |
The mem_destroy() function frees all the memory allocated by a given Memindex. | |
| void | mem_assign (struct _Memindex *m, int i, int len, void *b) |
The mem_assign() function assigns a (pointer) value to a given index. | |
| void | mem_free (struct _Memindex *m, int i, int j, int len, void *b) |
The mem_free() function frees a given index. | |
| macro | foreach_mem (struct _Memindex *index, int len, int _i) |
The foreach_mem() macro traverses every _i allocated elements of array _m taking into account a periodicity of _len (and ghost cells). | |
|
inlinestatic |
The mem_data() macros return the data stored at a specific (multidimensional) index.
It assumes that the index is allocated. This can be checked with mem_allocated().
Definition at line 41 of file simple.h.