diff options
Diffstat (limited to 'src/patch/patch.hh')
-rw-r--r-- | src/patch/patch.hh | 38 |
1 files changed, 34 insertions, 4 deletions
diff --git a/src/patch/patch.hh b/src/patch/patch.hh index b58882d..6325dfe 100644 --- a/src/patch/patch.hh +++ b/src/patch/patch.hh @@ -312,11 +312,41 @@ public: assert(max_sigma_ghost_zone_ != NULL); return *max_sigma_ghost_zone_; } - ghost_zone& minmax_ang_ghost_zone(bool want_min, bool want_rho) const; - ghost_zone& ghost_zone_on_edge(const patch_edge &edge) const; - // get ghost zone on specified edge, verify that it is indeed - // interpatch, static_cast<> to interpatch_ghost_zone ptr + // ... these fns are defined explicitly (unlike for grid:: stuff) + // because they're actually used by Jacobian code in ../gr/ + ghost_zone& minmax_rho_ghost_zone(bool want_min) + const + { + return want_min ? min_rho_ghost_zone() + : max_rho_ghost_zone(); + } + ghost_zone& minmax_sigma_ghost_zone(bool want_min) + const + { + return want_min ? min_sigma_ghost_zone() + : max_sigma_ghost_zone(); + } + + ghost_zone& minmax_ang_ghost_zone(bool want_min, bool want_rho) + const + { + return want_rho ? minmax_rho_ghost_zone(want_min) + : minmax_sigma_ghost_zone(want_min); + } + + ghost_zone& ghost_zone_on_edge(const patch_edge &e) const; + + // which of the two ghost zones at a specifieid corner, + // contains a specified point? + ghost_zone& corner_ghost_zone_containing_point + (bool rho_is_min, bool sigma_is_min, // specifies corner + int irho, int isigma) // specifies point + const; + + // get ghost zone on specified edge, + // assert() that it is indeed interpatch, + // static_cast<> to interpatch_ghost_zone ptr interpatch_ghost_zone& interpatch_ghost_zone_on_edge (const patch_edge &e) const; |