diff options
author | tradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a> | 2002-05-28 14:46:11 +0000 |
---|---|---|
committer | tradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a> | 2002-05-28 14:46:11 +0000 |
commit | d9f60a2c43dab43f72b875fa493b00c9df08ccde (patch) | |
tree | e1c968a20cc80effa3b475d753d66ac4f5d0d4f7 /src/ioutil_Utils.h | |
parent | fbfc1ccc144857418421096a267f9c1e7fac460c (diff) |
Added routine IOUtil_ParseOutputFrequency() and slightly changed the API
for the existing routine IOUtil_ParseVarsForOutput().
Both routines use the table API to parse option strings for the 'out_every'
option and for hyperslab options.
See the thornguide eg. for IOHDF5 for details.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@166 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
Diffstat (limited to 'src/ioutil_Utils.h')
-rw-r--r-- | src/ioutil_Utils.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/ioutil_Utils.h b/src/ioutil_Utils.h index 83831dc..74117aa 100644 --- a/src/ioutil_Utils.h +++ b/src/ioutil_Utils.h @@ -20,11 +20,14 @@ extern "C" /* structure describing an I/O request (including hyperslab parameters) */ typedef struct { + /* output frequency */ + CCTK_INT out_every; + /* index and timelevel of the variable */ int vindex, timelevel; /* dimensionality of the variable and the hyperslab */ - int vdim, hdim; + CCTK_INT vdim, hdim; /* CCTK datatype for the hyperslab */ int hdatatype; @@ -46,11 +49,20 @@ typedef struct /* parse a given 'out_vars' parameter string */ -void IOUtil_ParseVarsForOutput (const cGH *GH, const char *out_vars, +void IOUtil_ParseVarsForOutput (const cGH *GH, const char *method_name, + const char *parameter_name, + const char *out_vars, int out_every_default, ioRequest *request_list[]); +/* parse a given I/O parameter option string for the 'out_every' option */ +void IOUtil_ParseOutputFrequency (const char *method_name, + const char *parameter_name, + int vindex, const char *optstring, + CCTK_INT *out_every); + /* return the default I/O request description structure for a variable */ -ioRequest *IOUtil_DefaultIORequest (const cGH *GH, int vindex); +ioRequest *IOUtil_DefaultIORequest (const cGH *GH, int vindex, + int out_every_default); /* free an I/O request description */ void IOUtil_FreeIORequest (ioRequest **request); |