aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@b61c5cb5-eaca-4651-9a7a-d64986f99364>1999-10-26 23:02:17 +0000
committertradke <tradke@b61c5cb5-eaca-4651-9a7a-d64986f99364>1999-10-26 23:02:17 +0000
commit4392870df8c8cce741e4135b3ce53f0a1af9530a (patch)
tree051ee5e195e0a0be0a43ed9095b34b8b4a38270c
parent163b9671533a602baca196094cd469e08a1dfdb1 (diff)
pugh_Barrier() now really does a global synchronization.
Was an empty function before. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@119 b61c5cb5-eaca-4651-9a7a-d64986f99364
-rw-r--r--src/Comm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Comm.c b/src/Comm.c
index 525fdaf..179c99c 100644
--- a/src/Comm.c
+++ b/src/Comm.c
@@ -639,6 +639,13 @@ int pugh_DisableGroupComm(cGH *GH, const char *groupname)
int pugh_Barrier(cGH *GH)
{
+#ifdef MPI
+ pGH *pughGH;
+
+ pughGH = (pGH *) GH->extensions [CCTK_GHExtensionHandle ("PUGH")];
+ CACTUS_MPI_ERROR (MPI_Barrier (pughGH->PUGH_COMM_WORLD));
+#endif
+
return 0;
}