diff options
Diffstat (limited to 'src/Write3D.c')
-rw-r--r-- | src/Write3D.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Write3D.c b/src/Write3D.c index 56fb233..4a6bab7 100644 --- a/src/Write3D.c +++ b/src/Write3D.c @@ -137,7 +137,7 @@ int IOASCII_Write3D (const cGH *GH, int vindex, const char *alias) int extent_int[3]; CCTK_REAL offset[3]; int mapping; - CCTK_INT vindices[4], extent[3], hsize[3]; + CCTK_INT vindices[4], extent[3], downsample[3], hsize[3]; const CCTK_INT origin[] = {0, 0, 0}, direction[] = {1, 0, 0, 0, 1, 0, 0, 0, 1}; DECLARE_CCTK_PARAMETERS @@ -227,10 +227,14 @@ int IOASCII_Write3D (const cGH *GH, int vindex, const char *alias) extent[i] = extent_int[i]; } + downsample[0] = out_downsample_x; + downsample[1] = out_downsample_y; + downsample[2] = out_downsample_z; + /* get the hyperslab mapping */ mapping = Hyperslab_GlobalMappingByIndex (GH, vindex, 3, direction, origin, extent, - NULL, /* downsample */ + downsample, -1, /* table handle */ NULL /* conversion fn */, hsize); |