aboutsummaryrefslogtreecommitdiff
path: root/src/patch
diff options
context:
space:
mode:
authorjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2001-07-17 11:15:14 +0000
committerjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2001-07-17 11:15:14 +0000
commit92a7602a7170d6730b9a1d7777d8b4074507287b (patch)
treeb844b6f9b41f42f8bb176f48e49f09679f47bf61 /src/patch
parentabd698ee5f175114d7527a2a73169e0d6ff4ee4a (diff)
delete *_sample_ipar arguments from
patch::setup_periodic_symmetry_ghost_zone() since we can figure them out ourselves from ipar_map_sign git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@205 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src/patch')
-rw-r--r--src/patch/patch.cc10
-rw-r--r--src/patch/patch.hh1
2 files changed, 8 insertions, 3 deletions
diff --git a/src/patch/patch.cc b/src/patch/patch.cc
index 80dfba2..cc8239c 100644
--- a/src/patch/patch.cc
+++ b/src/patch/patch.cc
@@ -294,17 +294,23 @@ return *temp;
//
symmetry_ghost_zone& patch::setup_periodic_symmetry_ghost_zone
(const patch_edge& my_edge, const patch_edge& symmetry_edge,
- int my_edge_sample_ipar, int symmetry_edge_sample_ipar,
bool ipar_map_sign) // one of cpm_map::{plus,minus}_map
{
// make sure we belong to the right patch
assert(& my_edge.my_patch() == this);
+bool par_map_is_plus = (ipar_map_sign == cpm_map::plus_map);
+int my_sample_ipar = my_edge.min_ipar_without_corners();
+int symmetry_sample_ipar
+ = par_map_is_plus ? symmetry_edge.min_ipar_without_corners()
+ : symmetry_edge.max_ipar_without_corners();
+
symmetry_ghost_zone *temp
= new symmetry_ghost_zone(my_edge, symmetry_edge,
- my_edge_sample_ipar, symmetry_edge_sample_ipar,
+ my_sample_ipar, symmetry_sample_ipar,
ipar_map_sign);
set_ghost_zone(temp, my_edge);
+
return *temp;
}
diff --git a/src/patch/patch.hh b/src/patch/patch.hh
index 99abf28..229c365 100644
--- a/src/patch/patch.hh
+++ b/src/patch/patch.hh
@@ -298,7 +298,6 @@ public:
// ... return reference to new ghost zone
symmetry_ghost_zone& setup_periodic_symmetry_ghost_zone
(const patch_edge& my_edge, const patch_edge& symmetry_edge,
- int my_edge_sample_ipar, int symmetry_edge_sample_ipar,
bool ipar_map_sign); // one of cpm_map::{plus,minus}_map
// set up one of our ghost zones as interpatch