6.8 Other Preprocessor Symbols

The constants FIXEDBLOCKSIZE and NDIM are both included for convenience in this file. NDIM gives the dimensionality of the problem, and FIXEDBLOCKSIZE is defined if and only if fixed blocksize mode is selected at compile time.

Each Config file can include the PPDEFINE keyword to define additional preprocessor symbols. Each “PPDEFINE symbol [value]” gets translated to a “#define symbol [value]”. This mechanism can be used to write code that depends on which units are included in the simulation. See Sec:ConfigFileSyntax for concrete usage examples.