aboutsummaryrefslogtreecommitdiff
path: root/src/Write3D.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Write3D.c')
-rw-r--r--src/Write3D.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Write3D.c b/src/Write3D.c
index 314146b..3d4db78 100644
--- a/src/Write3D.c
+++ b/src/Write3D.c
@@ -100,9 +100,13 @@ int IOSDF_Write3D (const cGH *GH, int vindex, const char *alias)
}
/* get the coordinate system associated with this grid variable */
- groupname = CCTK_GroupName (gindex);
- coord_system_handle = Coord_GroupSystem (GH, groupname);
- free (groupname);
+ coord_system_handle = -1;
+ if (CCTK_IsFunctionAliased ("Coord_GroupSystem"))
+ {
+ groupname = CCTK_GroupName (gindex);
+ coord_system_handle = Coord_GroupSystem (GH, groupname);
+ free (groupname);
+ }
/* get the total number of grid points to check for zero-sized variables */
/* set the extent vector (copy from 'int' to 'CCTK_INT') */