diff options
author | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2002-04-10 15:26:20 +0000 |
---|---|---|
committer | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2002-04-10 15:26:20 +0000 |
commit | 46a9f3fc26c4f9d7aa520802171890014d80d278 (patch) | |
tree | 508ca1d449d9c2540d2a8bf8df1c4a73996139b8 | |
parent | b859dd89f742e2eadae55cacdb4f7dc2a98fd669 (diff) |
add gridfn stride fns
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@486 f88db872-0e4f-0410-b76b-b9085cfa78c5
-rw-r--r-- | src/patch/patch_edge.hh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/patch/patch_edge.hh b/src/patch/patch_edge.hh index df4fe22..58191b7 100644 --- a/src/patch/patch_edge.hh +++ b/src/patch/patch_edge.hh @@ -87,9 +87,19 @@ public: // - // ***** coordinate maps ***** + // ***** gridfn subscripting and coordinate maps ***** // + // gridfn strides perpendicular/parallel to the edge + int perp_stride() const + { return my_patch().iang_stride(perp_is_rho()); } + int par_stride() const + { return my_patch().iang_stride(par_is_rho()); } + int ghosted_perp_stride() const + { return my_patch().ghosted_iang_stride(perp_is_rho()); } + int ghosted_par_stride() const + { return my_patch().ghosted_iang_stride(par_is_rho()); } + // coordinate maps perpendicular/parallel to the edge // ... range is that of the grid *including* ghost zones const jtutil::linear_map<fp>& perp_map() const |