diff options
-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(); + } // |