aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/gdata.cc
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2011-11-29 19:02:14 -0500
committerBarry Wardell <barry.wardell@gmail.com>2011-12-14 19:55:02 +0000
commite5a4072babaaeaccfd96d9857d433deaa417503f (patch)
tree5cbf71b49cf3c993153a5c81b7046cf3c4813461 /Carpet/CarpetLib/src/gdata.cc
parent01b7b58d2ba75324fadebba2cdd41b0c8ff77227 (diff)
Improve named barriers
Introduce dist::barrier as low-level implementation of a named barrier. Use it in Carpet::NamedBarrier. Use the above in almost all barrier calls.
Diffstat (limited to 'Carpet/CarpetLib/src/gdata.cc')
-rw-r--r--Carpet/CarpetLib/src/gdata.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/Carpet/CarpetLib/src/gdata.cc b/Carpet/CarpetLib/src/gdata.cc
index 2feda1882..cba9f1796 100644
--- a/Carpet/CarpetLib/src/gdata.cc
+++ b/Carpet/CarpetLib/src/gdata.cc
@@ -51,7 +51,7 @@ gdata::gdata (const int varindex_,
allgdatai = allgdata.insert(allgdata.end(), this);
if (barriers) {
- MPI_Barrier (dist::comm());
+ dist::barrier (dist::comm(), 783988953, "CarpetLib::gdata::gdata");
}
}
@@ -63,7 +63,7 @@ gdata::~gdata ()
allgdata.erase(allgdatai);
if (barriers) {
- MPI_Barrier (dist::comm());
+ dist::barrier (dist::comm(), 109687805, "CarpetLib::gdata::~gdata");
}
}