Basilisk CFD
Adaptive Cartesian mesh PDE framework
Loading...
Searching...
No Matches
layers.h File Reference

Go to the source code of this file.

Macros

#define foreach_layer()   /* foreach_block */
 

Functions

which uses the point l index as local layer index *macro foreach_block_inner (Point p=point)
 

Variables

int nl = 1
 
 loops
 We redefine two types of block traversals.
 
which uses a global _layer index *int _layer = 0
 
 macro
 We also redefine the "per field" (inner) traversal.
 

Macro Definition Documentation

◆ foreach_layer

#define foreach_layer ( )    /* foreach_block */

Function Documentation

◆ foreach_block_inner()

which uses the point l index as local layer index *macro foreach_block_inner ( Point  p = point)

Definition at line 29 of file layers.h.

References nl, and p.

Variable Documentation

◆ _layer

which uses a global _layer index* int _layer = 0

Definition at line 15 of file layers.h.

Referenced by advect(), check_stencil(), event_init(), and event_viscous_term().

◆ loops

loops

We redefine two types of block traversals.

... and an "inner" traversal, usable within for (int _i = 0; _i < _N; _i++) /* foreach

An "outer" traversal, usable outside for (int _i = 0; _i < _N; _i++) /* foreach

Definition at line 13 of file layers.h.

◆ macro

macro
Initial value:
{
for (_layer = 0; _layer < nl; _layer++)
{...}
_layer = 0
int nl
Definition layers.h:9
which uses a global _layer index *int _layer
Definition layers.h:15

We also redefine the "per field" (inner) traversal.

Definition at line 18 of file layers.h.

◆ nl