diff options
author | tradke <tradke@94b1c47f-dcfd-45ef-a468-0854c0e9e350> | 2004-06-10 16:40:47 +0000 |
---|---|---|
committer | tradke <tradke@94b1c47f-dcfd-45ef-a468-0854c0e9e350> | 2004-06-10 16:40:47 +0000 |
commit | 98bc87067e54f21301d12619588c271488edd412 (patch) | |
tree | c83c4b2f18fc6af73e7529fb20ac67a524d114d0 /src/Write3D.c | |
parent | f5ed6c2e28e17995f9a69ee24a33ee81ddc44065 (diff) |
Implement downsampling for IOASCII output.
Set IO::out_downsample_[xyz] to change to default of no downsampling.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOASCII/trunk@182 94b1c47f-dcfd-45ef-a468-0854c0e9e350
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); |