[aspect-devel] Parameter file preprocessor?

Jonathan Perry-Houts jperryh2 at uoregon.edu
Thu May 15 13:31:27 PDT 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Good point. Thanks!

On 05/15/2014 01:29 PM, Wolfgang Bangerth wrote:
> 
>> 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.
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTdSQeAAoJEGe6xJ1FYRpRV6YH/RBcMY0PQu7Q5x+Bfofs2h74
p7XAjSFA1rz90o+TXgqVAdXgNqz+FFEoW6r2PXqpv+vWbmpSrikqaijHh5dTwOCi
djT9wna8ZEgO06mqTRHOO51r9UTn/18eus/c4k2hl2HnjWMsfuOtMpaB/WmU9V2I
5vavQXz7BxP9JrGQ0V38vndxCzTvk0Ovqp5/3TP21zacHB5kBh8wfk3fuDLz8zzT
3EV7lw+VhoJj6ASS8953iwS+3NkB5ZSvkazas8GMwrKulUAolrehQqPABOc6IOnF
37X7KHfRlLA0Gd7Qqx97R7WD/qUnCEP6HNkMpib9yafBfHVCx2GtI5M9A64Fb4w=
=4QjE
-----END PGP SIGNATURE-----


More information about the Aspect-devel mailing list