aboutsummaryrefslogtreecommitdiff
path: root/src/Write2D.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Write2D.c')
-rw-r--r--src/Write2D.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Write2D.c b/src/Write2D.c
index 31f0390..cbaae69 100644
--- a/src/Write2D.c
+++ b/src/Write2D.c
@@ -223,7 +223,11 @@ int IOFlexIO_Write2D (const cGH *GH, int vindex, const char *alias)
/* get the coordinate ranges */
groupname = CCTK_GroupNameFromVarI (vindex);
- 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);
if (coord_system_handle >= 0 &&