diff options
author | allen <allen@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 1999-10-19 09:55:58 +0000 |
---|---|---|
committer | allen <allen@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 1999-10-19 09:55:58 +0000 |
commit | 58c62068f65f29cf701a4d1b17e690abb25022ca (patch) | |
tree | 3ca3c2f2c5dcf4889052cb9fcaef3d3d8c35f588 /src/DumpVar.c | |
parent | 9c5b6dcd66381ba4dc64ada18103e1f4e283f748 (diff) |
Changing the DI macro to DATINDEX from Pugh, so that we can now
just have one macro in PUGH to calculate the data index
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOFlexIO/trunk@52 ebee0441-1374-4afa-a3b5-247f3ba15b9a
Diffstat (limited to 'src/DumpVar.c')
-rw-r--r-- | src/DumpVar.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/DumpVar.c b/src/DumpVar.c index 7ad342f..96561fd 100644 --- a/src/DumpVar.c +++ b/src/DumpVar.c @@ -802,7 +802,7 @@ void IOFlexIO_getDumpData (cGH *GH, int index, int timelevel, void **outme, for (k = start [2]; k <= end [2]; k += ioUtilGH->downsample_z) for (j = start [1]; j <= end [1]; j += ioUtilGH->downsample_y) for (i = start [0]; i <= end [0]; i += ioUtilGH->downsample_x) - char_ptr [l++] = ((CCTK_CHAR *) data) [DI (pughGH, i, j, k)]; + char_ptr [l++] = ((CCTK_CHAR *) data) [DATINDEX (pughGH, i, j, k)]; break; case CCTK_VARIABLE_INT: @@ -810,7 +810,7 @@ void IOFlexIO_getDumpData (cGH *GH, int index, int timelevel, void **outme, for (k = start [2]; k <= end [2]; k += ioUtilGH->downsample_z) for (j = start [1]; j <= end [1]; j += ioUtilGH->downsample_y) for (i = start [0]; i <= end [0]; i += ioUtilGH->downsample_x) - int_ptr [l++] = ((CCTK_INT *) data) [DI (pughGH, i, j, k)]; + int_ptr [l++] = ((CCTK_INT *) data) [DATINDEX (pughGH, i, j, k)]; break; case CCTK_VARIABLE_REAL: @@ -823,9 +823,9 @@ void IOFlexIO_getDumpData (cGH *GH, int index, int timelevel, void **outme, for (i = start [0]; i <= end [0]; i += ioUtilGH->downsample_x) if (ioUtilGH->out_single) single_ptr [l++] = (CCTK_REAL4) - (((CCTK_REAL *) data) [DI (pughGH, i, j, k)]); + (((CCTK_REAL *) data) [DATINDEX (pughGH, i, j, k)]); else - real_ptr [l++] = ((CCTK_REAL *) data) [DI (pughGH, i, j, k)]; + real_ptr [l++] = ((CCTK_REAL *) data) [DATINDEX (pughGH, i, j, k)]; break; default: |