#1554: Want to define constants in parameter files --------------------------+------------------------------------------------- Reporter: eschnett | Owner: sbrandt Type: enhancement | Status: assigned Priority: major | Milestone: Component: Cactus | Version: development version Resolution: | Keywords: --------------------------+-------------------------------------------------
Comment (by barry.wardell):
An alternative which is already available is the rpar file format supported by SimFactory. That is, whenever SimFactory encounters a parameter file with the .rpar extension, it assumes it is executable and will produce a .par file with the same base name when executed. It then executes this file and runs Cactus with the generated .par file. This allows almost arbitrary flexibility, including constants and variables by writing rpar files in your language of choice (Python/Perl/etc.). There is an example of how this works in the sgw3d.rpar file in the McLachlan repository.