aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2007-08-09 20:24:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2007-08-09 20:24:00 +0000
commitd1ce391a38e99f955794dfdf57ae471670600c01 (patch)
treebbaa5f3d151702041a3526300975cefbf339bc04 /Carpet/Carpet/src
parent64e61c87867e391fd68c01f68bdcbc74b73d4c6e (diff)
Carpet: Add comment to prolongation operator handling
darcs-hash:20070809202455-dae7b-6293f8e465c2dea19d00a64fc65a06edbfc94bd0.gz
Diffstat (limited to 'Carpet/Carpet/src')
-rw-r--r--Carpet/Carpet/src/SetupGH.cc4
-rw-r--r--Carpet/Carpet/src/Storage.cc13
2 files changed, 10 insertions, 7 deletions
diff --git a/Carpet/Carpet/src/SetupGH.cc b/Carpet/Carpet/src/SetupGH.cc
index 2284ec4cb..32db09aa1 100644
--- a/Carpet/Carpet/src/SetupGH.cc
+++ b/Carpet/Carpet/src/SetupGH.cc
@@ -1789,7 +1789,9 @@ namespace Carpet {
// Select the prolongation method
assert (have_prolong_string);
if (CCTK_Equals(prolong_string, "none")) {
- return op_sync; // sync absolutely everything
+ // This would surprise too many people
+ // return op_none;
+ return op_sync;
} else if (CCTK_Equals(prolong_string, "sync")) {
return op_sync;
} else if (CCTK_Equals(prolong_string, "copy")) {
diff --git a/Carpet/Carpet/src/Storage.cc b/Carpet/Carpet/src/Storage.cc
index 1ef8cd5a2..85457221b 100644
--- a/Carpet/Carpet/src/Storage.cc
+++ b/Carpet/Carpet/src/Storage.cc
@@ -360,12 +360,13 @@ namespace Carpet {
assert (not ierr);
if (gp.grouptype == CCTK_GF) {
- if (groupdata.at(group).transport_operator != op_none
- and groupdata.at(group).transport_operator != op_copy
- and groupdata.at(group).transport_operator != op_sync) {
- if (groupdata.at(group).activetimelevels.at(ml).at(rl) != 0
- and (groupdata.at(group).activetimelevels.at(ml).at(rl)
- < prolongation_order_time+1))
+ if (groupdata.at(group).transport_operator != op_none and
+ groupdata.at(group).transport_operator != op_sync and
+ groupdata.at(group).transport_operator != op_copy)
+ {
+ if (groupdata.at(group).activetimelevels.at(ml).at(rl) != 0 and
+ (groupdata.at(group).activetimelevels.at(ml).at(rl) <
+ prolongation_order_time+1))
{
static vector<bool> didwarn;
int const numgroups = CCTK_NumGroups();