aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Output3D.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Output3D.c b/src/Output3D.c
index 4b3c5db..9a0605c 100644
--- a/src/Output3D.c
+++ b/src/Output3D.c
@@ -35,7 +35,7 @@ static void CheckSteerableParameters (pandaGH *myGH);
static void SetOutputFlag (int index, const char *optstring, void *arg);
static void IOPanda_Timestep (cGH *GH, int index, const char *alias);
static void IOPanda_IEEEIOStructDump (cGH *GH, char *fname);
-static void IOPanda_AddCommonAttributes (cGH *GH, int index, int timelevel, CCTK_INT *gsz, char *fname);
+static void IOPanda_AddCommonAttributes (cGH *GH, int index, int timelevel, int global_size[3], char *fname);
static void IOPanda_AddChunkAttributes (cGH *GH, int index, CCTK_INT4 *geom, char *fname);
/*@@
@@ -464,12 +464,13 @@ static void IOPanda_Timestep (cGH *GH,
static void IOPanda_AddCommonAttributes (cGH *GH,
int index,
int timelevel,
- CCTK_INT4 gsz [3],
+ int global_size[3],
char *fname)
{
DECLARE_CCTK_PARAMETERS
CCTK_REAL d3_to_IO [6]; /* buffer for writing doubles to IEEEIO */
CCTK_INT4 i_to_IO; /* buffer for writing an int to IEEEIO */
+ CCTK_INT4 i3_to_IO[3]; /* buffer for writing ints to IEEEIO */
CCTK_REAL dummy;
char *name, *gname;
ioGH *ioUtilGH;
@@ -535,7 +536,10 @@ static void IOPanda_AddCommonAttributes (cGH *GH,
Panda_WriteAttribute (fname, "evolution_delta", FLOAT64, 3, d3_to_IO);
}
- Panda_WriteAttribute (fname, "global_size", INT32, 3, gsz);
+ i3_to_IO[0] = global_size[0];
+ i3_to_IO[1] = global_size[1];
+ i3_to_IO[2] = global_size[2];
+ Panda_WriteAttribute (fname, "global_size", INT32, 3, i3_to_IO);
i_to_IO = CCTK_nProcs (GH);
Panda_WriteAttribute (fname, "nprocs", INT32, 1, &i_to_IO);