aboutsummaryrefslogtreecommitdiff
path: root/param.ccl
diff options
context:
space:
mode:
authortradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a>1999-06-16 17:25:28 +0000
committertradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a>1999-06-16 17:25:28 +0000
commitf9bc678d712514e2553aa9be33723ab9988ef30a (patch)
tree6197473ed25ddc27baff0c15c03fda1b01ca805a /param.ccl
parent77eac7cd94ffdf2fb99c8996b294d1a782aa5963 (diff)
This is thorn IO, just a skeleton for real IO, just providing
parameters and register an IO extension. Actual IO is done now by ASCIIIO, FlexIO, and HDF5IO. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@2 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
Diffstat (limited to 'param.ccl')
-rw-r--r--param.ccl174
1 files changed, 174 insertions, 0 deletions
diff --git a/param.ccl b/param.ccl
new file mode 100644
index 0000000..4212c20
--- /dev/null
+++ b/param.ccl
@@ -0,0 +1,174 @@
+# Parameter definitions for thorn IOUtil
+
+#############################################################################
+### import grid parameters
+#############################################################################
+friend: grid
+
+EXTEND KEYWORD symmetry ""
+{
+}
+
+#############################################################################
+### declare IOUtil parameters
+### These are declared protected so that they can be seen by other IO thorns.
+#############################################################################
+protected:
+
+####################
+# Output directories
+####################
+STRING IO_outdir "Name of IO output directory"
+{
+} "."
+STRING IO_outdir0D "Name of IO 0D output directory, overrides IO_outdir"
+{
+} "IO_outdir"
+STRING IO_outdir1D "Name of IO 1D output directory, overrides IO_outdir"
+{
+} "IO_outdir"
+STRING IO_outdir2D "Name of IO 2D output directory, overrides IO_outdir"
+{
+} "IO_outdir"
+STRING IO_outdir3D "Name of IO 3D output directory, overrides IO_outdir"
+{
+} "IO_outdir"
+
+
+########################
+# How often to do output
+########################
+INTEGER IO_every "How often to do IO output"
+{
+ -1:* ::
+} -1
+INTEGER IO_0Devery "How often to do 0D output, overrides IO_every"
+{
+ -1:* ::
+} -1
+INTEGER IO_1Devery "How often to do 1D output, overrides IO_every"
+{
+ -1:* ::
+} -1
+INTEGER IO_2Devery "How often to do 2D output, overrides IO_every"
+{
+ -1:* ::
+} -1
+INTEGER IO_3Devery "How often to do 3D output, overrides IO_every"
+{
+ -1:* ::
+} -1
+
+
+################
+# various things
+################
+LOGICAL IO_verbose "Give extended screen output in IO?"
+{
+} "no"
+LOGICAL IO_datestamp "Write date as attribute to IO 3D output file?"
+{
+} "yes"
+LOGICAL IO_parameters "Write parameters to IO 3D output file?"
+{
+} "yes"
+LOGICAL IO_structures "Write structures to IO 3D output file?"
+{
+} "yes"
+
+
+#######################
+# Specific to 1D output
+# Choosing what output to do
+#######################
+LOGICAL Dox_1D "Do 1D output in the x-direction"
+{
+} "yes"
+LOGICAL Doy_1D "Do 1D output in the y-direction"
+{
+} "yes"
+LOGICAL Doz_1D "Do 1D output in the z-direction"
+{
+} "yes"
+LOGICAL Dod_1D "Do 1D output in the diagonal-direction"
+{
+} "yes"
+
+
+#######################
+# Specific to 3D output
+#######################
+KEYWORD iomode "Which mode for 3D IO"
+{
+ "proc" :: "every processor writes its share of data into a separate file"
+ "np" :: "data is collected and written by every N'th processor into a separate file, where N is specified by the parameter ioproc_every"
+ "onefile" :: "all output is written into a single file by processor 0"
+} "proc"
+
+INTEGER ioproc_every "Do IO on every N processors."
+{
+ 1:* :: "Must be a positive integer"
+} 8
+LOGICAL onefileperslice "Write one file per time slice, as opposed to all data in one file"
+{
+} "no"
+LOGICAL unchunked "Don't write data in chunks."
+{
+} "no"
+
+
+##############################################
+# Downsampling parameters (only for 3D output)
+##############################################
+INTEGER downsample_x "Factor by which to downsample output in x direction. Point (0,0,0) is always included."
+{
+ 1:* :: "Must be a positive integer"
+} 1
+INTEGER downsample_y "Factor by which to downsample output in y direction. Point (0,0,0) is always included."
+{
+ 1:* :: "Must be a positive integer"
+} 1
+INTEGER downsample_z "Factor by which to downsample output in z direction. Point (0,0,0) is always included."
+{
+ 1:* :: "Must be a positive integer"
+} 1
+LOGICAL out_single "Output 3D data in single precision ? This parameter is ignored for Cactus compiled with SINGLE_PRECISION."
+{
+} "no"
+
+
+###################################
+# Checkpointing/recovery parameters
+###################################
+LOGICAL checkpoint_ID "Checkpoint initial data ?"
+{
+} "no"
+LOGICAL checkpoint_keep_all "Keep all checkpoint files ?"
+{
+} "no"
+LOGICAL recover "Recover from a checkpoint file ?"
+{
+} "no"
+INTEGER checkpoint_every "Checkpoint every x iterations"
+{
+ -1:* :: "negative values disable checkpointing"
+} -1
+INTEGER checkpoint_keep "How many checkpoint files to keep"
+{
+ 1:* :: "1 overwrites the latest checkpoint file"
+} 1
+STRING checkpoint_file "File name for regular checkpoint"
+{
+} "checkpoint"
+STRING checkpoint_ID_file "File name for initial data checkpoint"
+{
+} "checkpointID"
+STRING recover_file "File name of recovery file"
+{
+} "checkpoint"
+STRING checkpoint_dir "Output directory for checkpoint files"
+{
+} "."
+STRING recovery_dir "Directory to look for the recovery file"
+{
+} "."