aboutsummaryrefslogtreecommitdiff
path: root/src/Output2D.c
diff options
context:
space:
mode:
authortradke <tradke@94b1c47f-dcfd-45ef-a468-0854c0e9e350>2001-12-13 12:08:36 +0000
committertradke <tradke@94b1c47f-dcfd-45ef-a468-0854c0e9e350>2001-12-13 12:08:36 +0000
commit81cb04034072d59583194d75af79491a7674d1de (patch)
tree7b7bb1a4f28969a64de167706c54a87a514c5ac6 /src/Output2D.c
parentb5ab373e2c442017fe284f9531a91cb9a5eed6ac (diff)
Put in Erik's patch to get 2D ASCII output for 2D variables.
Closes PR CactusBase-IOASCII/478. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOASCII/trunk@86 94b1c47f-dcfd-45ef-a468-0854c0e9e350
Diffstat (limited to 'src/Output2D.c')
-rw-r--r--src/Output2D.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/Output2D.c b/src/Output2D.c
index 3353a1c..94a4f20 100644
--- a/src/Output2D.c
+++ b/src/Output2D.c
@@ -26,10 +26,6 @@ CCTK_FILEVERSION(CactusBase_IOASCII_Output2D_c)
/* prototypes of routines defined in this source file */
-int IOASCII_TriggerOutput2D (const cGH *GH, int vindex);
-int IOASCII_Output2DVarAs (const cGH *GH, const char *fullname, const char *alias);
-int IOASCII_TimeFor2D (const cGH *GH, int vindex);
-int IOASCII_Output2DGH (const cGH *GH);
static int CheckOutputVar (int vindex);
static void CheckSteerableParameters (asciiioGH *myGH);
static void SetOutputFlag (int vindex, const char *optstring, void *arg);
@@ -347,15 +343,15 @@ static int CheckOutputVar (int vindex)
const char *errormsg;
- /* get the variable group indormation */
+ /* get the variable group information */
groupindex = CCTK_GroupIndexFromVarI (vindex);
CCTK_GroupData (groupindex, &groupinfo);
- /* check if variable is of dimension 3 and is a GF or array type */
+ /* check if variable is grid array type with either 2 or 3 dimensions */
errormsg = NULL;
- if (groupinfo.dim != 3)
+ if (groupinfo.dim < 2 || groupinfo.dim > 3)
{
- errormsg = "No IOASCII 2D output for '%s' (dim != 3)";
+ errormsg = "No IOASCII 2D output for '%s' (dim != [2,3])";
}
else if (groupinfo.grouptype != CCTK_GF && groupinfo.grouptype != CCTK_ARRAY)
{