diff options
author | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2002-07-18 17:40:38 +0000 |
---|---|---|
committer | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2002-07-18 17:40:38 +0000 |
commit | 695c3f5b78149e18eeb0cc74f5ae971f5ff9cd32 (patch) | |
tree | 7aef5bc8b9ed0429e3784bb647c56e6c0a3cbf5c /src/patch/patch.hh | |
parent | e01a3c4dfd2cea40f95c7c49084ccc26d68f1a81 (diff) |
changes to compute Jacobian coefficients properly
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@632 f88db872-0e4f-0410-b76b-b9085cfa78c5
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; |