aboutsummaryrefslogtreecommitdiff
path: root/src/Write1D.c
diff options
context:
space:
mode:
authortradke <tradke@94b1c47f-dcfd-45ef-a468-0854c0e9e350>2006-10-04 14:43:37 +0000
committertradke <tradke@94b1c47f-dcfd-45ef-a468-0854c0e9e350>2006-10-04 14:43:37 +0000
commitb9be6e119cc0102347d929a2382f2f34176e00ef (patch)
tree250a5f751e632531154fb2f924a5453c11b47ff6 /src/Write1D.c
parent3f9c805a361674711d2aa65e3d615a8184c97d16 (diff)
Make only optional use of aliased function Coord_GroupSystem().
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOASCII/trunk@199 94b1c47f-dcfd-45ef-a468-0854c0e9e350
Diffstat (limited to 'src/Write1D.c')
-rw-r--r--src/Write1D.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/Write1D.c b/src/Write1D.c
index 999e583..7779c86 100644
--- a/src/Write1D.c
+++ b/src/Write1D.c
@@ -191,16 +191,20 @@ int IOASCII_Write1D (const cGH *GH, int vindex, const char *alias)
return (0);
}
- /* get the coordinate system associated with this grid variable */
- groupname = CCTK_GroupName (gindex);
- coord_system_handle = Coord_GroupSystem (GH, groupname);
- free (groupname);
-
dir = gdata.dim < 3 ? gdata.dim : 3;
- have_coords = coord_system_handle >= 0 &&
- Util_TableGetIntArray (coord_system_handle, dir,
- coord_handles, "COORDINATES") >= 0;
+ have_coords = CCTK_IsFunctionAliased ("Coord_GroupSystem");
+ if (have_coords)
+ {
+ /* get the coordinate system associated with this grid variable */
+ groupname = CCTK_GroupName (gindex);
+ coord_system_handle = Coord_GroupSystem (GH, groupname);
+ free (groupname);
+
+ have_coords = coord_system_handle >= 0 &&
+ Util_TableGetIntArray (coord_system_handle, dir,
+ coord_handles, "COORDINATES") >= 0;
+ }
if (have_coords)
{
/* get the coordinate functions and coordinate physical minimum */