[ET Trac] [Einstein Toolkit] #1290: parameter file parser fails to parse parameter name
Einstein Toolkit
trac-noreply at einsteintoolkit.org
Thu Apr 4 22:32:21 CDT 2013
#1290: parameter file parser fails to parse parameter name
---------------------+------------------------------------------------------
Reporter: rhaas | Owner:
Type: defect | Status: new
Priority: minor | Milestone:
Component: Cactus | Version:
Resolution: | Keywords:
---------------------+------------------------------------------------------
Comment (by rhaas):
apparently the parser requires whitespace between operators and parameter
name. From the error text it even seems as if it tries to accept "/" as
part of the parameter name. Cactus already limits that allowed letters in
parameter names to [A-Za-z]{A-Za-z0-9_]* [plus the :: to separate thorn
from parameter part] so that (possibly with more stuff for [] of parameter
vectors) would seem like a sufficiently large class to include. having to
have to separate operators from variable names by white space is unheard
of in any programming language that I have ever worked with (even Tcl
which allows *anything* incl "/" and the empty string for variable names
will require that it is referred to as ${/} when its value is needed).
So
{{{
EOS_Omni::poly_k =
grhydro_initdata::rotor_pressin/grhydro_initdata::rotor_rhoin**EOS_Omni::gl_gamma
}}}
fails, but
{{{
EOS_Omni::poly_k = grhydro_initdata::rotor_pressin /
grhydro_initdata::rotor_rhoin ** EOS_Omni::gl_gamma
}}}
works.
--
Ticket URL: <https://trac.einsteintoolkit.org/ticket/1290#comment:1>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit
More information about the Trac
mailing list