From 9c9bcb0f58e57235866d65db56f3d603b5dcfeaa Mon Sep 17 00:00:00 2001 From: tradke Date: Mon, 19 Mar 2001 23:18:30 +0000 Subject: 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 --- param.ccl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'param.ccl') 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 -- cgit v1.2.3