diff options
author | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2002-04-04 18:52:53 +0000 |
---|---|---|
committer | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2002-04-04 18:52:53 +0000 |
commit | 102b2635814320b4a5757f4738352c3d759061d5 (patch) | |
tree | 25470ef6fbc32b03cc992fd78fafd47d194786e4 /src | |
parent | f1c76fa47eddc54273ef6b6c59f14b7b3ff469ab (diff) |
add missing fns for ghosted min/max/N gridfns
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@432 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src')
-rw-r--r-- | src/patch/patch_system.hh | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/patch/patch_system.hh b/src/patch/patch_system.hh index 046e30f..0ee5594 100644 --- a/src/patch/patch_system.hh +++ b/src/patch/patch_system.hh @@ -109,6 +109,10 @@ public: int min_gfn() const { return ith_patch(0).min_gfn(); } int max_gfn() const { return ith_patch(0).max_gfn(); } int N_gridfns() const { return ith_patch(0).N_gridfns(); } + int ghosted_min_gfn() const { return ith_patch(0).ghosted_min_gfn(); } + int ghosted_max_gfn() const { return ith_patch(0).ghosted_max_gfn(); } + int ghosted_N_gridfns() const + { return ith_patch(0).ghosted_N_gridfns(); } // @@ -134,8 +138,8 @@ public: // // This constructor doesn't support the full generality of the // patch data structures (which would, eg, allow N_ghost_points - // and N_extend_points and interpolator_order to vary from - // ghost zone to ghost zone, and the grid spacings to vary + // and N_extend_points and the interpolator parameters to vary + // from ghost zone to ghost zone, and the grid spacings to vary // from patch to patch. But in practice we'd probably never // use that generality... // @@ -162,6 +166,10 @@ private: int N_ghost_points, int N_extend_points, fp delta_drho_dsigma); + // setup all gridfns with contiguous-across-patches storage + void setup_gridfn_storage(int min_gfn, int max_gfn, + int ghosted_min_gfn, int ghosted_max_gfn); + // create/interlink patches, ghost zones, and frontiers void interlink_full_sphere_patch_system (int N_ghost_points, int N_extend_points, @@ -213,10 +221,6 @@ private: // of all patches are fully setup void assert_all_ghost_zones_fully_setup() const; - // setup all gridfns with contiguous-across-patches storage - void setup_gridfn_storage(int min_gfn, int max_gfn, - int ghosted_min_gfn, int ghosted_max_gfn); - private: // we forbid copying and passing by value // by declaring the copy constructor and assignment operator @@ -235,4 +239,9 @@ private: // pointers to individual patches std::vector<patch *> all_patches_; + + // pointers to storage blocks for all gridfns + // ... patches point into these, but we own the storage blocks + fp *gridfn_storage_; + fp *ghosted_gridfn_storage_; }; |