diff options
author | tradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 1999-12-13 18:29:26 +0000 |
---|---|---|
committer | tradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 1999-12-13 18:29:26 +0000 |
commit | b488e2d50488bbaef4b228f7bf68b88dc0555cea (patch) | |
tree | 1ec944b655e94fd54d7e558c21cb7d072ced4c36 /src/Output3D.c | |
parent | fd9ed4dae76c8e7c07d8b1d2e3a841782eb28213 (diff) |
Moved the test, if storage was assigned to a variable to be output,
from the TimeToOutput() routines into the lower level WriteOutput()
routines. Fixing by that
* the behaviour of triggers, where TimeToOutput() is called BEFORE
storage is possibly assigned (BR 170)
* a potential bug when calling OutputVarAs() where no such test was
done before
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOFlexIO/trunk@70 ebee0441-1374-4afa-a3b5-247f3ba15b9a
Diffstat (limited to 'src/Output3D.c')
-rw-r--r-- | src/Output3D.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/src/Output3D.c b/src/Output3D.c index 2c83fd2..af262f1 100644 --- a/src/Output3D.c +++ b/src/Output3D.c @@ -66,12 +66,8 @@ int IOFlexIO_Output3DGH (cGH *GH) /* Loop over all variables */ for (i = 0; i < CCTK_NumVars (); i++) { if (IOFlexIO_TimeFor3D (GH, i)) { - implementation = CCTK_ImpFromVarI (i); name = CCTK_VarName (i); - fullname = (char *) malloc (strlen (implementation) + - strlen (name) + 3); - assert (fullname); - sprintf (fullname, "%s::%s", implementation, name); + fullname = CCTK_FullName (i); if (verbose) { printf ("IOFlexIO Output3DGH : \n"); @@ -156,10 +152,7 @@ int IOFlexIO_Output3DVarAs (cGH *GH, const char *fullname, const char *alias) method @enddesc @calls CCTK_GHExtensionHandle - CCTK_GroupTypeFromVarI CCTK_WARN - CCTK_QueryGroupStorageI - CCTK_GroupNameFromVarI @calledby IOFlexIO_Output3DGH @history @@ -195,19 +188,6 @@ int IOFlexIO_TimeFor3D (cGH *GH, int index) return (0); } - /* Check var has storage */ - if (! CCTK_QueryGroupStorageI (GH, - CCTK_GroupIndexFromVarI(index))) { - char *fullname = CCTK_FullName (index); - char *msg = (char *) malloc (80 + strlen (fullname)); - - sprintf (msg, "No IOFlexIO 3D output for '%s' (no storage)", fullname); - CCTK_WARN (2, msg); - free (fullname); - free (msg); - return (0); - } - return (1); } |