diff options
author | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2001-07-15 15:25:03 +0000 |
---|---|---|
committer | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2001-07-15 15:25:03 +0000 |
commit | 8f466c3f7d46c212dccd39d7e37d97aa3f765a18 (patch) | |
tree | 3d070a60cf69623ab69434bc13465878c7558204 /src/patch/patch.hh | |
parent | f6e469cc8f40615f395c708435d3b36f89e745ae (diff) |
change
setup_mirror_symmetry_ghost_zone()
setup_periodic_symmetry_ghost_zone()
setup_interpatch_ghost_zone()
setup_patch_frontier()
to all return references to newly-created objects
... n.b. references are to most-derived types (eg interpatch_ghost_zone
not just ghost_zone) for the benefit of
patch_system::setup_adjacent_patch_frontiers()
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@158 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src/patch/patch.hh')
-rw-r--r-- | src/patch/patch.hh | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/patch/patch.hh b/src/patch/patch.hh index b557c5a..58c83fc 100644 --- a/src/patch/patch.hh +++ b/src/patch/patch.hh @@ -284,10 +284,13 @@ public: // // set up one of our ghost zones as mirror-symmetry - void setup_mirror_symmetry_ghost_zone(const patch_edge& edge_in); + // ... return reference to new ghost zone + symmetry_ghost_zone& setup_mirror_symmetry_ghost_zone + (const patch_edge& edge_in); // set up one of our ghost zones as periodic-symmetry - void setup_periodic_symmetry_ghost_zone + // ... return reference to new ghost zone + symmetry_ghost_zone& setup_periodic_symmetry_ghost_zone (const patch_edge& my_edge_in, const patch_edge& symmetry_edge_in, int my_edge_sample_ipar, int symmetry_edge_sample_ipar, bool ipar_map_sign); // one of cpm_map::{plus,minus}_map @@ -295,13 +298,16 @@ public: // set up one of our ghost zones as interpatch // ... but don't link it to the other patch's frontier // (which doesn't exist yet) - void setup_interpatch_ghost_zone(const patch_edge& edge_in, - const patch_edge& other_edge_in); + // ... return reference to new ghost zone + interpatch_ghost_zone& setup_interpatch_ghost_zone + (const patch_edge& edge_in, + const patch_edge& other_edge_in); // set up one of our patch frontiers - void setup_patch_frontier(const patch_edge& my_edge_in, - int min_iperp_in, int max_iperp_in, - int interpolator_order); + // ... return reference to new frontier + patch_frontier& setup_patch_frontier(const patch_edge& my_edge_in, + int min_iperp_in, int max_iperp_in, + int interpolator_order); protected: |