aboutsummaryrefslogtreecommitdiff
path: root/src/patch/ghost_zone.cc
diff options
context:
space:
mode:
authorjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2002-04-02 17:50:15 +0000
committerjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2002-04-02 17:50:15 +0000
commit0e9a2f21b3a3c0160ffb71e096c0bfe2a60139e3 (patch)
treeb4254e623667a8e25f707f6984681c4d8f588b71 /src/patch/ghost_zone.cc
parentaed60fcd6605970b0b9482ce6a10fc9d788a8cbc (diff)
add missing interpatch_ghost_zone::assert_fully_setup()
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@424 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src/patch/ghost_zone.cc')
-rw-r--r--src/patch/ghost_zone.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/patch/ghost_zone.cc b/src/patch/ghost_zone.cc
index 486ad57..bb3e99e 100644
--- a/src/patch/ghost_zone.cc
+++ b/src/patch/ghost_zone.cc
@@ -11,6 +11,7 @@
// interpatch_ghost_zone::~interpatch_ghost_zone
// interpatch_ghost_zone::[min,max]_ipar
// interpatch_ghost_zone::setup_other_patch_frontier
+// interpatch_ghost_zone::assert_fully_setup
// interpatch_ghost_zone::synchronize
//
@@ -454,6 +455,25 @@ other_patch().set_patch_frontier(other_edge(), other_frontier_);
//******************************************************************************
//
+// This function asserts() that our frontier pointer is non-NULL,
+// that the other patch has an interpatch ghost zone on this edge, and
+// that that interpatch ghost zone points back to us.
+//
+void interpatch_ghost_zone::assert_fully_setup() const
+{
+assert(other_frontier_ != NULL);
+
+assert( other_patch()
+ .ghost_zone_on_edge(other_edge())
+ .is_interpatch() );
+assert( my_patch() == other_patch()
+ .interpatch_ghost_zone_on_edge(other_edge())
+ .other_patch() );
+}
+
+//******************************************************************************
+
+//
// This function "synchronizes" a ghost zone, i.e. it updates the
// ghost-zone values of the specified gridfns via the appropriate
// interpatch interpolations.