aboutsummaryrefslogtreecommitdiff
path: root/param.ccl
diff options
context:
space:
mode:
authortradke <tradke@94b1c47f-dcfd-45ef-a468-0854c0e9e350>2001-03-19 23:18:30 +0000
committertradke <tradke@94b1c47f-dcfd-45ef-a468-0854c0e9e350>2001-03-19 23:18:30 +0000
commit9c9bcb0f58e57235866d65db56f3d603b5dcfeaa (patch)
tree9c7bfd0feb3dd64085c8bc52407953bdb83fab67 /param.ccl
parent98548fa71f1753b9f681548e46760c23aa4cd04c (diff)
Changed the out_style parameter from KEYWORD into STRING.
It's got a nice regular expression as its range string, allowing you not only to specify which format to output (exponential or fixed) but also the precision. Doing so can significantly reduce the output file size, especially if you're doing 2D output. The default value is ".13f" complying with the former implementation of a hard-coded precision. No exisiting parameter files should be affected, you can still use "e" or "f". git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOASCII/trunk@48 94b1c47f-dcfd-45ef-a468-0854c0e9e350
Diffstat (limited to 'param.ccl')
-rw-r--r--param.ccl7
1 files changed, 3 insertions, 4 deletions
diff --git a/param.ccl b/param.ccl
index 6fde64c..14270c5 100644
--- a/param.ccl
+++ b/param.ccl
@@ -58,11 +58,10 @@ KEYWORD out_style "Which style for 1D ASCII output"
"xgraph" :: "output readable by xgraph"
} "xgraph"
-KEYWORD out_format "Which format for ASCII output" STEERABLE = ALWAYS
+STRING out_format "Which format for ASCII output" STEERABLE = ALWAYS
{
- "e" :: "output in exponential notation"
- "f" :: "output in floating point notation"
-} "f"
+ "^(\.[0-9]{1,2})?[ef]$" :: "output with given precision in exponential / floating point notation"
+} ".13f"
############################
# Specific to 1D output