aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src/Poison.cc
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-01-20 17:13:58 -0500
committerErik Schnetter <schnetter@gmail.com>2013-01-20 17:13:58 -0500
commitda0df590c04ede3b6e8e43ecee1b2526cc40a1db (patch)
tree256489cd07743f13a5877b458af7742cd9ee5444 /Carpet/Carpet/src/Poison.cc
parent2acad47b1161286012b852a0b83f880c1fb5efb8 (diff)
Carpet: Use cctk_ash where necessary in poisoning and checksumming
Diffstat (limited to 'Carpet/Carpet/src/Poison.cc')
-rw-r--r--Carpet/Carpet/src/Poison.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/Carpet/Carpet/src/Poison.cc b/Carpet/Carpet/src/Poison.cc
index 1846253f1..19c51d363 100644
--- a/Carpet/Carpet/src/Poison.cc
+++ b/Carpet/Carpet/src/Poison.cc
@@ -122,7 +122,7 @@ namespace Carpet {
ivect size(1);
int const gpdim = groupdata.AT(group).info.dim;
for (int d=0; d<gpdim; ++d) {
- size[d] = groupdata.AT(group).info.lsh[d];
+ size[d] = groupdata.AT(group).info.ash[d];
}
int const np = prod(size);
@@ -193,9 +193,10 @@ namespace Carpet {
BEGIN_LOCAL_MAP_LOOP(cctkGH, grouptype) {
BEGIN_LOCAL_COMPONENT_LOOP(cctkGH, grouptype) {
- ivect size(1);
+ ivect size(1), asize(1);
for (int d=0; d<gpdim; ++d) {
size[d] = groupdata.AT(group).info.lsh[d];
+ asize[d] = groupdata.AT(group).info.ash[d];
}
int const np = prod(size);
@@ -209,7 +210,7 @@ namespace Carpet {
for (int k=0; k<size[2]; ++k) {
for (int j=0; j<size[1]; ++j) {
for (int i=0; i<size[0]; ++i) {
- int const idx = i + size[0] * (j + size[1] * k);
+ int const idx = i + asize[0] * (j + asize[1] * k);
bool poisoned=false;
switch (specific_cactus_type(tp)) {
#define TYPECASE(N,T) \