diff options
author | swhite <schnetter@cct.lsu.edu> | 2004-12-10 13:14:00 +0000 |
---|---|---|
committer | swhite <schnetter@cct.lsu.edu> | 2004-12-10 13:14:00 +0000 |
commit | 12fcc775ea386198b9d0f1c55f8e8b2be520dfac (patch) | |
tree | d8653c002cd40f07adf68a6623e10e230333072b /Carpet/CarpetRegrid | |
parent | 676fe3f15cb5f4c3c03467308504530beb876da3 (diff) |
CarpetLib:gh exposed data clamp-down
Made all variables in CarpetLib:gh to be const or non-public, to avoid
confusion and insanity.
Toward this end, created four member accessors for gh:
const rexts & extents() const
const rbnds & outer_boundaries() const
const rprocs & processors() const
const vector<vector<ibbox> > & bases() const
This involved a few changes in several files throughout the repository:
M ./Carpet/Carpet/src/Initialise.cc -2 +2
M ./Carpet/Carpet/src/Recompose.cc -8 +8
M ./Carpet/Carpet/src/SetupGH.cc -2 +2
M ./Carpet/Carpet/src/modes.cc -3 +3
M ./Carpet/CarpetIOHDF5/src/Recover.cc -4 +4
M ./Carpet/CarpetInterp/src/interp.cc -5 +5
M ./Carpet/CarpetLib/src/dh.cc -3 +3
M ./Carpet/CarpetLib/src/gh.cc -33 +33
M ./Carpet/CarpetLib/src/gh.hh -10 +28
M ./Carpet/CarpetReduce/src/mask_carpet.cc -4 +4
M ./Carpet/CarpetRegrid/src/automatic.cc -2 +2
darcs-hash:20041210131459-32473-ff0835ff0e57f6693fbe1ec23b350d1b1d18e3bc.gz
Diffstat (limited to 'Carpet/CarpetRegrid')
-rw-r--r-- | Carpet/CarpetRegrid/src/automatic.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Carpet/CarpetRegrid/src/automatic.cc b/Carpet/CarpetRegrid/src/automatic.cc index 775175db1..8549b3875 100644 --- a/Carpet/CarpetRegrid/src/automatic.cc +++ b/Carpet/CarpetRegrid/src/automatic.cc @@ -125,7 +125,7 @@ namespace CarpetRegrid { list<ibbox> bbl; for (int c=0; c<hh.components(rl); ++c) { - const ibbox region = hh.extents.at(rl).at(c).at(ml); + const ibbox region = hh.extents().at(rl).at(c).at(ml); assert (! region.empty()); const data<CCTK_REAL,dim>& errordata = *errorgf(tl,rl,c,ml); @@ -162,7 +162,7 @@ namespace CarpetRegrid { // Create obs from bbs obs.resize (bbs.size()); for (size_t c=0; c<bbs.size(); ++c) { - assert (hh.bases.size()>0 && hh.bases.at(0).size()>0); + assert (hh.bases().size()>0 && hh.bases().at(0).size()>0); obs.at(c) = zip ((vect<bool,2> (*) (bool, bool)) &vect<bool,2>::make, bbs.at(c).lower() == hh.baseextent.lower(), bbs.at(c).upper() == hh.baseextent.upper()); |