diff options
author | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2002-03-30 18:37:35 +0000 |
---|---|---|
committer | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2002-03-30 18:37:35 +0000 |
commit | 156d39e63373d2daf36c8ae254e822ea57125a94 (patch) | |
tree | 058897074e41fc31041e8341010a991f5c90e66e /src | |
parent | f5290b44276dcbc56c43811e3d0f6b93728b41f9 (diff) |
add member fns to get gridfn offset/stride subscripting info
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@406 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src')
-rw-r--r-- | src/patch/grid.hh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/patch/grid.hh b/src/patch/grid.hh index 03f04c1..ffa7bf0 100644 --- a/src/patch/grid.hh +++ b/src/patch/grid.hh @@ -312,7 +312,7 @@ public: // - // ***** gridfn access functions ***** + // ***** gridfns ***** // public: @@ -334,6 +334,17 @@ public: fp& ghosted_gridfn(int gfn, int irho, int isigma) { return ghosted_gridfn_data_(gfn, irho, isigma); } + // subscripting info + 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 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(); } + // // ***** argument structures for constructor et al ***** |