aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortradke <tradke@38c3d835-c875-442e-b0fe-21c19ce1d001>2000-09-29 22:19:07 +0000
committertradke <tradke@38c3d835-c875-442e-b0fe-21c19ce1d001>2000-09-29 22:19:07 +0000
commit23fbd747717ea7ad2186bd743e56bae5dc9977ed (patch)
treeaf3acea2777bd1c4a00234fc37a39a7cf578cadb /src
parent49adfeb7226ffa033edf8cb072e6dfae73323772 (diff)
Adding chunk attributes to output files.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOPanda/trunk@14 38c3d835-c875-442e-b0fe-21c19ce1d001
Diffstat (limited to 'src')
-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);