diff options
Diffstat (limited to 'src/slab.c')
-rw-r--r-- | src/slab.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -582,9 +582,9 @@ int Slab_Transfer (cGH * restrict const cctkGH, assert (dim >= 0); assert (xferinfo); assert (srctype >= 0); - assert (srcptr); +/* assert (srcptr); */ assert (dsttype >= 0); - assert (dstptr); +/* assert (dstptr); */ assert (dim <= SLAB_MAXDIM); info = malloc (SLAB_MAXDIM * sizeof *info); @@ -643,6 +643,9 @@ int Slab_Transfer (cGH * restrict const cctkGH, dstlentot *= info[d].dst.local.len; } + if (srclentot > 0) assert (srcptr); + if (dstlentot > 0) assert (dstptr); + comm = get_mpi_comm (cctkGH); |