From 7926aba944c5c4ca0fa6b99990995979c2c9ae52 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Thu, 22 Jun 2006 16:24:00 +0000 Subject: 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 --- Carpet/CarpetTracker/src/SetPositions.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Carpet/CarpetTracker') 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 (sf_origin_x[sn]), - static_cast (sf_origin_y[sn]), - static_cast (sf_origin_z[sn])); + static_cast (sf_centroid_x[sn]), + static_cast (sf_centroid_y[sn]), + static_cast (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 { -- cgit v1.2.3