diff options
author | ianhin <ianhin> | 2006-06-19 22:20:26 +0000 |
---|---|---|
committer | ianhin <ianhin> | 2006-06-19 22:20:26 +0000 |
commit | 22d5e3ddd985ca4986d9f38852fe85d93afccc8f (patch) | |
tree | 3e7c22dae08dacafb6dcd5c7515d2db3ce5f3e07 /Tools/CodeGen | |
parent | cb361c377295839c2b2886657bf3206435109852 (diff) |
Use CForm on CCTK_REAL values in parameters. This allows exponential
notation etc.
Diffstat (limited to 'Tools/CodeGen')
-rw-r--r-- | Tools/CodeGen/Thorn.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Tools/CodeGen/Thorn.m b/Tools/CodeGen/Thorn.m index 4851db5..0745657 100644 --- a/Tools/CodeGen/Thorn.m +++ b/Tools/CodeGen/Thorn.m @@ -154,7 +154,9 @@ Quote[x_] := {"\"", x, "\""}; renderValue[type_, value_] := If[type == "KEYWORD", Quote[value], - value]; + If[type == "CCTK_REAL", + ToString[CForm[value]], + value]]; (* Return a block defining a parameter with the given parameterSpec (defined above). This is used for defining new |