diff options
Diffstat (limited to 'src/PostSendGA.c')
-rw-r--r-- | src/PostSendGA.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/PostSendGA.c b/src/PostSendGA.c index 22f11b5..b462c52 100644 --- a/src/PostSendGA.c +++ b/src/PostSendGA.c @@ -107,6 +107,11 @@ void PostSendGA(pGH *pughGH, int dir, pComm *comm) iend = GA->extras->overlap[1][dir]; iterator = GA->extras->iterator; + if (iend[0] > GA->extras->nsize[0]) + { + CCTK_WARN (CCTK_WARN_ABORT, "Internal error in communication descriptor: Trying to send data that don't exist. (This may happen if a process has too few grid points.)"); + } + /* set iterator to the start vector */ for(dim = 0; dim < GA->extras->dim; dim++) { |