aboutsummaryrefslogtreecommitdiff
path: root/src/DumpUtils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/DumpUtils.c')
-rw-r--r--src/DumpUtils.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/DumpUtils.c b/src/DumpUtils.c
index 5b4c6aa..54c56ce 100644
--- a/src/DumpUtils.c
+++ b/src/DumpUtils.c
@@ -257,7 +257,11 @@ void IOHDF5Util_DumpCommonAttributes (const cGH *GH, const ioRequest *request,
/* attributes describing the variable */
groupname = CCTK_GroupNameFromVarI (request->vindex);
WRITE_ATTRIBUTE ("groupname", groupname, object, myGH, 0, myGH->HDF5_STRING);
- coord_system_handle = Coord_GroupSystem (GH, groupname);
+ coord_system_handle = -1;
+ if (CCTK_IsFunctionAliased ("Coord_GroupSystem"))
+ {
+ coord_system_handle = Coord_GroupSystem (GH, groupname);
+ }
free (groupname);
iattr = CCTK_GroupTypeFromVarI (request->vindex);
WRITE_ATTRIBUTE ("grouptype", &iattr, object, myGH, 0, HDF5_INT);