diff options
Diffstat (limited to 'src/slab.c')
-rw-r--r-- | src/slab.c | 17 |
1 files changed, 4 insertions, 13 deletions
@@ -2,12 +2,13 @@ /* TODO: + Provide facilities for types other than CCTK_REAL Provide facilities for dim != 3 Set up the slab exchange information in advance Test slabbing without MPI Allow using / not setting the ghost zones Allow not using / not setting the boundaries - Allow different ghost zones at the lower and upper boundary + Allow different numbers of ghost zones at the lower and upper boundary */ @@ -195,16 +196,6 @@ struct info { -static inline int min (int const x, int const y) -{ - return x < y ? x : y; -} - -static inline int max (int const x, int const y) -{ - return x > y ? x : y; -} - static inline int roundup (int const x, int const y) { assert (x >= 0); @@ -363,7 +354,8 @@ static void bbox_xform (struct bbox * restrict const ydst, int Slab_Transfer (cGH * restrict const cctkGH, int const dim, - struct xferinfo const * const xferinfo, + struct xferinfo const * restrict const xferinfo, + int const options, int const srctype, void const * const srcptr, int const dsttype, @@ -663,7 +655,6 @@ int Slab_Transfer (cGH * restrict const cctkGH, && srcipos[c] < info[c].src.local.off + info[c].src.local.len); if (! (srcipos[c] >= allinfo[n*dim+c].src.slab.off && srcipos[c] <= allinfo[n*dim+c].src.slab.off + (allinfo[n*dim+c].src.slab.len - 1) * allinfo[n*dim+c].src.slab.str)) { - printf ("ssc n=%d ipos=[%d,%d,%d] d=%d srcipos=%d slab.off=%d slab.len=%d\n", n, i, j, k, d, srcipos[c], allinfo[n*dim+c].src.slab.off, allinfo[n*dim+c].src.slab.len); } assert (srcipos[c] >= allinfo[n*dim+c].src.slab.off && srcipos[c] <= allinfo[n*dim+c].src.slab.off + (allinfo[n*dim+c].src.slab.len - 1) * allinfo[n*dim+c].src.slab.str); |