diff options
author | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2002-04-09 17:37:59 +0000 |
---|---|---|
committer | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2002-04-09 17:37:59 +0000 |
commit | 637da95a87f00072d702d073ca60c2b8bd0734ee (patch) | |
tree | 72015129911e8de930f3d0ee4e29ac164731d7e5 /src | |
parent | f35c3d07197715e82f783876e29f7cc64b6ce295 (diff) |
min/max gfn were not being set properly by setup_gridfn_storage()
--> now just compute them on-the-fly from the gridfn storage arrays
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@473 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src')
-rw-r--r-- | src/patch/grid.hh | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/src/patch/grid.hh b/src/patch/grid.hh index b548297..e365abf 100644 --- a/src/patch/grid.hh +++ b/src/patch/grid.hh @@ -288,12 +288,28 @@ public: // public: // gfn ranges - int min_gfn() const { return min_gfn_; } - int max_gfn() const { return max_gfn_; } + int min_gfn() const + { + assert(gridfn_data_ != NULL); + return (*gridfn_data_).min_i(); + } + int max_gfn() const + { + assert(gridfn_data_ != NULL); + return (*gridfn_data_).max_i(); + } int N_gridfns() const { return jtutil::how_many_in_range(min_gfn(), max_gfn()); } - int ghosted_min_gfn() const { return ghosted_min_gfn_; } - int ghosted_max_gfn() const { return ghosted_max_gfn_; } + int ghosted_min_gfn() const + { + assert(ghosted_gridfn_data_ != NULL); + return (*ghosted_gridfn_data_).min_i(); + } + int ghosted_max_gfn() const + { + assert(ghosted_gridfn_data_ != NULL); + return (*ghosted_gridfn_data_).max_i(); + } int ghosted_N_gridfns() const { return jtutil::how_many_in_range(ghosted_min_gfn(), |