diff options
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); } |