[aspect-devel] Parameter file preprocessor?
Wolfgang Bangerth
bangerth at math.tamu.edu
Thu May 15 13:29:38 PDT 2014
> Is there functionality in the parameter file processor to use
> something analogous to C style preprocessor directives? It would be
> useful for moving between 2d and 3d. I'm imagining something like:
>
>
> #define DIM 2
> set Dimension = DIM
>
> subsection Geometry model
> set Model name = box
>
> subsection Box
> set X extent = 1000e3
> #if DIM == 2
> set Y extent = 660e3
> #else
> set Y extent = 1000e3
> set Z extent = 660e3
> #endif
> end
> end
No, there is nothing like this right now. However, you can of course your
input file through the C preprocessor, as in
gcc -E input.prm.in -o input.prm
(I believe, or some variation thereof, using -E).
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth at math.tamu.edu
www: http://www.math.tamu.edu/~bangerth/
More information about the Aspect-devel
mailing list