aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetTracker
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2006-06-22 16:24:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2006-06-22 16:24:00 +0000
commit7926aba944c5c4ca0fa6b99990995979c2c9ae52 (patch)
tree94fb15ca1fe8f38ee66ba3cd325b824293020a1f /Carpet/CarpetTracker
parent7f9a92b741e46357f1a288f33d09c28c617ff0b6 (diff)
CarpetTracker: Use the surface centroid instead of the origin
Use the surface centroid instead of the origin to set the position of the refined regions. The origin can be arbitrary, only the centroid is supposed to have a physical meaning. darcs-hash:20060622162442-dae7b-cc34fcfef05be362ce39e67ba26825e528a761c8.gz
Diffstat (limited to 'Carpet/CarpetTracker')
-rw-r--r--Carpet/CarpetTracker/src/SetPositions.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/Carpet/CarpetTracker/src/SetPositions.cc b/Carpet/CarpetTracker/src/SetPositions.cc
index 74df6b15e..c16f1f61b 100644
--- a/Carpet/CarpetTracker/src/SetPositions.cc
+++ b/Carpet/CarpetTracker/src/SetPositions.cc
@@ -54,13 +54,13 @@ using namespace std;
CCTK_VInfo (CCTK_THORNSTRING,
"Setting position of refined region #%d from surface #%d to (%g,%g,%g)",
n + 1, sn,
- static_cast <double> (sf_origin_x[sn]),
- static_cast <double> (sf_origin_y[sn]),
- static_cast <double> (sf_origin_z[sn]));
+ static_cast <double> (sf_centroid_x[sn]),
+ static_cast <double> (sf_centroid_y[sn]),
+ static_cast <double> (sf_centroid_z[sn]));
}
- SetParameter ("x", n, sf_origin_x[sn]);
- SetParameter ("y", n, sf_origin_y[sn]);
- SetParameter ("z", n, sf_origin_z[sn]);
+ SetParameter ("x", n, sf_centroid_x[sn]);
+ SetParameter ("y", n, sf_centroid_y[sn]);
+ SetParameter ("z", n, sf_centroid_z[sn]);
} else {