aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreschnett <eschnett@b61c5cb5-eaca-4651-9a7a-d64986f99364>2011-07-06 13:11:50 +0000
committereschnett <eschnett@b61c5cb5-eaca-4651-9a7a-d64986f99364>2011-07-06 13:11:50 +0000
commit3f7402c4960c584ce78f0f703ea81a6167a02b60 (patch)
tree3063a2ebfd821ac216059cfc8f35261679da05d6
parent113d96f3c287a1a03d7ec7e4ab57dd00166d06f0 (diff)
Correct synchronisation error
Correct error checking logic that would otherwise prevent group 0 from being synchronised. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@508 b61c5cb5-eaca-4651-9a7a-d64986f99364
-rw-r--r--src/Comm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Comm.c b/src/Comm.c
index 68e8fa7..792882e 100644
--- a/src/Comm.c
+++ b/src/Comm.c
@@ -164,7 +164,7 @@ int PUGH_SyncGroupsByDirI(const cGH *GH,
#endif
first_var = CCTK_FirstVarIndexI (groups[group]);
- if (first_var > 0 && PUGH_SyncGArrayGroup (pughGH, first_var) == 0)
+ if (first_var >= 0 && PUGH_SyncGArrayGroup (pughGH, first_var) == 0)
{
retval++;
}