diff options
author | tradke <tradke@b589c3ab-70e8-4b4d-a09f-cba2dd200880> | 1999-10-26 23:40:17 +0000 |
---|---|---|
committer | tradke <tradke@b589c3ab-70e8-4b4d-a09f-cba2dd200880> | 1999-10-26 23:40:17 +0000 |
commit | 5b469bd4a94f2cba17ca871a39548eb671dd1da6 (patch) | |
tree | 91410deff70a126f690bc06739562a832e496161 /src/iobasicGH.h | |
parent | 9d52c908265b3b9fcd1ffe8d469095503b051276 (diff) |
Tidying up several things:
- use ParseVarsForOutput() instead of InitIONum() for parsing the out_vars
parameter
- decide which output dir shall be used by using CCTK_ParameterInfo()
rather than comparing it with its old "outdir" default value
- outdirs are always created now (not only if out_vars was non-empty)
because IO methods might be invoked via CCTK_OutputVarAs() also
- some variables renamed for better readability
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOBasic/trunk@14 b589c3ab-70e8-4b4d-a09f-cba2dd200880
Diffstat (limited to 'src/iobasicGH.h')
-rw-r--r-- | src/iobasicGH.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/iobasicGH.h b/src/iobasicGH.h index a61fdb4..1c21c61 100644 --- a/src/iobasicGH.h +++ b/src/iobasicGH.h @@ -13,23 +13,25 @@ typedef struct IOBASICGH { - /* The number of times output */ - int *infonum; - int *Scalarnum; + /* how often to output */ + int outScalar_every; + int outInfo_every; - int Scalarevery; - int infoevery; + /* flags indicating output for var [i] */ + char *do_outInfo; + char *do_outScalar; - /* Directory in which to output */ - char *outpfx_Scalar; + /* directory in which to output */ + char *outdirScalar; /* The last iteration output */ - int *infolast; - int *Scalarlast; + int *outInfo_last; + int *outScalar_last; /* The values for info */ CCTK_REAL **infovals; + /* database for names of output files that were already created */ pNamedData *filenameListScalar; } iobasicGH; @@ -39,4 +41,3 @@ typedef struct IOBASICGH { void IOBasic_Write (cGH *GH, int index, const char *alias); void IOBasic_WriteGF (cGH *GH, int index, const char *alias); CCTK_REAL IOBasic_WriteInfo (cGH *GH, int index, const char *operator, const char *alias); - |