diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2010-08-27 16:44:49 -0400 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2011-12-14 18:25:17 +0000 |
commit | bed54e5df6d3f29d0d2ad473018fa35b0f994a2a (patch) | |
tree | 1bcf0438c63a47fcf38b1439e23e6a75c15086f0 /Carpet/Carpet/src/Comm.cc | |
parent | d5194ae8988416f0c4237068697a5031068febc9 (diff) |
Carpet: Correct synchronisation for grid arrays and grid scalars
Diffstat (limited to 'Carpet/Carpet/src/Comm.cc')
-rw-r--r-- | Carpet/Carpet/src/Comm.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Carpet/Carpet/src/Comm.cc b/Carpet/Carpet/src/Comm.cc index c01a59fa3..e335765d8 100644 --- a/Carpet/Carpet/src/Comm.cc +++ b/Carpet/Carpet/src/Comm.cc @@ -208,8 +208,7 @@ namespace Carpet { const int grouptype = CCTK_GroupTypeI (g); const int ml = grouptype == CCTK_GF ? mglevel : 0; const int rl = grouptype == CCTK_GF ? reflevel : 0; - const int active_tl = - groupdata.AT(g).activetimelevels.AT(mglevel).AT(reflevel); + const int active_tl = groupdata.AT(g).activetimelevels.AT(ml).AT(rl); assert (active_tl>=0); const int tl = active_tl > 1 ? timelevel : 0; for (int m = 0; m < (int)arrdata.AT(g).size(); ++m) { |