aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/gh.hh
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@aei.mpg.de>2005-02-01 23:19:00 +0000
committerErik Schnetter <schnetter@aei.mpg.de>2005-02-01 23:19:00 +0000
commitd17f3be5c1583932b9f07dcd046a4ce545aaa2c7 (patch)
tree0f2c6f30aea828c6fdf8aece32dbca70fd30c8a2 /Carpet/CarpetLib/src/gh.hh
parente1b4578304c7debe97919beb858e4fc4519b1b9f (diff)
CarpetLib: Use dist::rank() instead of MPI_Comm_rank()
darcs-hash:20050201231956-891bb-8c892504000762557eb01b8b6ef48d8f0b815e06.gz
Diffstat (limited to 'Carpet/CarpetLib/src/gh.hh')
-rw-r--r--Carpet/CarpetLib/src/gh.hh7
1 files changed, 3 insertions, 4 deletions
diff --git a/Carpet/CarpetLib/src/gh.hh b/Carpet/CarpetLib/src/gh.hh
index 1520bcc6d..ee7b86844 100644
--- a/Carpet/CarpetLib/src/gh.hh
+++ b/Carpet/CarpetLib/src/gh.hh
@@ -127,10 +127,9 @@ public:
return _processors.at(rl).at(c);
}
- bool is_local (const int rl, const int c) const {
- int rank;
- MPI_Comm_rank (dist::comm, &rank);
- return proc(rl,c) == rank;
+ bool is_local (const int rl, const int c) const
+ {
+ return proc(rl,c) == dist::rank();
}
int local_components (const int rl) const;