diff options
author | eschnett <eschnett@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2013-01-08 18:45:50 +0000 |
---|---|---|
committer | eschnett <eschnett@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2013-01-08 18:45:50 +0000 |
commit | 5d9cf6b6570334ab9c8078790c61d091fcb8b78a (patch) | |
tree | db321ec54a3772b6e4bf93220faa86a5815fe3ea | |
parent | 9ea52d5b4ec5f59b267f6b74ea52d03166eee2c9 (diff) |
Catch internal inconsistency with too few grid points per process
Check that there are enough grid points to send while synchronizing.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@519 b61c5cb5-eaca-4651-9a7a-d64986f99364
-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++) { |