[aspect-devel] Parameter file preprocessor?

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


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

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


Thanks!
- -Jonathan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTdR+yAAoJEGe6xJ1FYRpROP0IAIzFZWiA8xNzR4kJQ0iA9Svn
zyPrwZxHjovhMmwp8NXjgwPxIMbs81UtDfUJb8FB5wIOqCGKibdU+hzLCtHq5Jva
/AGNTV66tHBBOSmY2xUok2tS4lspoBAm1YyXMuzwmtbM86nJNrbzg4oDrTgJbF/A
kzlOHTmLxTCvR0ccTWjZcohABQVAuOuFPgIGXkHrwPPkvoqFhL3YWReg786/kbyz
B6e9D9sEMzxaM/F+j6TU0j/Sy/20UJ1TQGrBYtA8R67SdCWPR+GkFmA0jXL4Rv+M
fohP74Vf0oqw870sbfkQDWPfUHzVJS8CmnFwaK2+V3pM1svxw5bKgGI8/CKtiK8=
=Gz6f
-----END PGP SIGNATURE-----


More information about the Aspect-devel mailing list