diff --git a/kharma/decs.hpp b/kharma/decs.hpp index 27bd5641..edaa296f 100644 --- a/kharma/decs.hpp +++ b/kharma/decs.hpp @@ -149,10 +149,14 @@ inline int MPINumRanks() { return parthenon::Globals::nranks; } -inline int MPIMyRank() +inline int MPIRank() { return parthenon::Globals::my_rank; } +inline int MPIBarrier() +{ + return MPI_Barrier(MPI_COMM_WORLD); +} // A few generic "NDArray" overloads for readability. // TODO torn on futures of these: they're explicitly per-block