diff options
author | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2002-03-30 18:48:44 +0000 |
---|---|---|
committer | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2002-03-30 18:48:44 +0000 |
commit | 60bfcec98c77115c07181b7240272257ea26cebd (patch) | |
tree | 5105208ee169ead6d282438d4880649a752077cb /src/patch/grid.hh | |
parent | 156d39e63373d2daf36c8ae254e822ea57125a94 (diff) |
add iang_stride() and ghosted_iang_stride()
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@407 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src/patch/grid.hh')
-rw-r--r-- | src/patch/grid.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/patch/grid.hh b/src/patch/grid.hh index ffa7bf0..0df5eb6 100644 --- a/src/patch/grid.hh +++ b/src/patch/grid.hh @@ -338,12 +338,19 @@ public: int gfn_stride() const { return gridfn_data_.subscript_stride_i(); } int irho_stride() const { return gridfn_data_.subscript_stride_j(); } int isigma_stride() const { return gridfn_data_.subscript_stride_k(); } + int iang_stride(bool want_rho) const + { return want_rho ? irho_stride() : isigma_stride(); } int ghosted_gfn_stride() const { return ghosted_gridfn_data_.subscript_stride_i(); } int ghosted_irho_stride() const { return ghosted_gridfn_data_.subscript_stride_j(); } int ghosted_isigma_stride() const { return ghosted_gridfn_data_.subscript_stride_k(); } + int ghosted_iang_stride(bool want_rho) const + { + return want_rho ? ghosted_irho_stride() + : ghosted_isigma_stride(); + } // |