dune_define_gridtypeΒΆ

dune_define_gridtype(
     output 
     GRIDTYPE gridtype
     DUNETYPE dunetype
     HEADERS header1 [header2 ...]
    [ASSERTION assertion]
)
output

String variable grid definition is written to.

GRIDTYPE

The name of the grid type to register, .e.g. YASPGRID.

DUNETYPE

The C++ type of the grid to be used for the typedef, e.g. YaspGrid< dimgrid >.

HEADERS

The header files that need to be included when using this grid.

ASSERTION

Condition to be checked by the preprocessor, e.g. GRIDDIM == WORLDDIM for grids like YaspGrid.

This function registers a new type for the GRIDTYPE magic.