diff options
author | tradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 2000-04-18 12:56:25 +0000 |
---|---|---|
committer | tradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 2000-04-18 12:56:25 +0000 |
commit | ee28234767b04fb1cbd05c95378bc8f440ebd8a5 (patch) | |
tree | 7bef127550ed3f3b28addc79e0b2d0ab8298d798 /src/Output3D.c | |
parent | b0ed0e3770c1dfad68bef66a4a01ec530fc32fa6 (diff) |
Several things which I missed to commit individually but rather do it in
one go now:
- checkpoint/recover parameters as a single string which could also be used
for writing a parameter file
- added routine to be scheduled at CCTK_RECOVER_PARAMETERS
- automatically select the latest checkpoint file for recovery if
IO::recover = "auto" was set
- Use IOFlexIO::reuse_filehandles with a different meaning now:
By default all IEEEIO output files are kept open all the time.
This is the most efficient method for writing data.
If you run out of system file handles you can enable this parameter then
to use the pause/resume scheme of the IEEEIO lib.
- automatically append data sets to already exisiting output files after
restart from recovery; duplicate timesteps are **NOT** removed from the
output files because IEEEIO lib cannot delete/overwrite individual data sets
So the reader has to handle this, it should always choose the latest data set
of a given timestep.
- fixed rcsid warnings
- use CCTK_Info() rather than printf() for giving verbose output
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOFlexIO/trunk@107 ebee0441-1374-4afa-a3b5-247f3ba15b9a
Diffstat (limited to 'src/Output3D.c')
-rw-r--r-- | src/Output3D.c | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/src/Output3D.c b/src/Output3D.c index f038082..c04ff93 100644 --- a/src/Output3D.c +++ b/src/Output3D.c @@ -69,10 +69,9 @@ int IOFlexIO_Output3DGH (cGH *GH) name = CCTK_VarName (i); fullname = CCTK_FullName (i); - if (verbose) { - printf ("IOFlexIO Output3DGH : \n"); - printf (" fullname/name = %s/%s\n", fullname, name); - } + if (verbose) + CCTK_VInfo (CCTK_THORNSTRING, "IOFlexIO_Output3DGH: " + "(fullname, name) = (%s, %s)", fullname, name); IOFlexIO_Output3DVarAs (GH, fullname, name); @@ -126,14 +125,11 @@ int IOFlexIO_Output3DVarAs (cGH *GH, const char *fullname, const char *alias) int index; - index = CCTK_VarIndex(fullname); + index = CCTK_VarIndex (fullname); - if (verbose) { - printf ("\nIn IOFlexIO Output3DVarAs\n-------------------\n"); - printf (" Fullname = -%s-\n", fullname); - printf (" Alias = -%s-\n", alias); - printf (" Index = %d\n", index); - } + if (verbose) + CCTK_VInfo (CCTK_THORNSTRING, "IOFlexIO_Output3DVarAs: " + "(fullname, alias, index) = (%s, %s, %d)", fullname, alias,index); /* Do the 3D output */ IOFlexIO_Write3D (GH, index, alias); @@ -236,11 +232,9 @@ int IOFlexIO_TriggerOutput3D (cGH *GH, int index) /* Get the GH extension for IOFlexIO */ myGH = (flexioGH *) GH->extensions [CCTK_GHExtensionHandle ("IOFlexIO")]; - if (verbose) { - printf("\nIn IOFlexIO TriggerOutput3D\n---------------------\n"); - printf(" Index = %d\n", index); - printf(" Variable = -%s-\n", varname); - } + if (verbose) + CCTK_VInfo (CCTK_THORNSTRING, "IOFlexIO_TriggerOutput3D: " + "name, index = %s, %d", varname, index); /* Do the 3D output */ IOFlexIO_Write3D (GH, index, varname); |