aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/dh.cc
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2011-09-15 09:12:23 -0400
committerErik Schnetter <schnetter@cct.lsu.edu>2011-09-15 09:12:23 -0400
commitac3aac76e3fd16a34e6d6bcbe6d68438e1d0ff87 (patch)
tree3a817f871f3c6123cd73cbdb79d5c43d3ff357c3 /Carpet/CarpetLib/src/dh.cc
parent42ea2ab2724c2f066fb223567c3f1571a597cfec (diff)
CarpetLib: Correct component and process ids while regridding
During regridding, there are two sets of component indices and process numbers, namely those of the old and of the new grid structure. Previously, Carpet would erroneously always use those of the new grid structure; this fails when the number of components changes.
Diffstat (limited to 'Carpet/CarpetLib/src/dh.cc')
-rw-r--r--Carpet/CarpetLib/src/dh.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/Carpet/CarpetLib/src/dh.cc b/Carpet/CarpetLib/src/dh.cc
index d3e2c0728..2297e5c7b 100644
--- a/Carpet/CarpetLib/src/dh.cc
+++ b/Carpet/CarpetLib/src/dh.cc
@@ -1627,7 +1627,7 @@ regrid (bool const do_init)
(sendrecv_pseudoregion_t (send, cc, recv, c));
if (not on_this_oldproc (rl, cc)) {
fast_dboxes & fast_level_otherproc =
- fast_level_otherprocs.AT(this_proc(rl, cc));
+ fast_level_otherprocs.AT(this_oldproc(rl, cc));
fast_level_otherproc.fast_old2new_sync_sendrecv.push_back
(sendrecv_pseudoregion_t (send, cc, recv, c));
}