aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/gh.hh
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2008-05-20 15:21:25 -0500
committerErik Schnetter <schnetter@cct.lsu.edu>2008-05-20 15:21:25 -0500
commit0cda1e7edaaecd1e4e06bb991433ba666704e388 (patch)
tree7037d1d7438c70c9fb364fbd0ab3e78c7bc12abc /Carpet/CarpetLib/src/gh.hh
parenta65814adf370180602132a7174e4f925c86d876e (diff)
CarpetLib: Correct regridding communication schedule
Handle correctly the case where the multi-patch processor decomposition changes during regridding.
Diffstat (limited to 'Carpet/CarpetLib/src/gh.hh')
-rw-r--r--Carpet/CarpetLib/src/gh.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/gh.hh b/Carpet/CarpetLib/src/gh.hh
index 4d1592120..0a283b4cf 100644
--- a/Carpet/CarpetLib/src/gh.hh
+++ b/Carpet/CarpetLib/src/gh.hh
@@ -96,6 +96,11 @@ public:
return regions.AT(0).AT(rl).AT(c).processor;
}
+ int old_processor (const int rl, const int c) const
+ {
+ return oldregions.AT(0).AT(rl).AT(c).processor;
+ }
+
int mglevels () const
{
return (int)regions.size();