diff options
author | swhite <schnetter@cct.lsu.edu> | 2004-12-10 00:41:00 +0000 |
---|---|---|
committer | swhite <schnetter@cct.lsu.edu> | 2004-12-10 00:41:00 +0000 |
commit | 676fe3f15cb5f4c3c03467308504530beb876da3 (patch) | |
tree | d6bc5bc8276344d580180f9853b88465edb7cdc0 /Carpet/CarpetLib/src | |
parent | f52d136d9e20f1a016489ce864affd90da0792ae (diff) |
CarpetLib/src/gh.hh member tightening
Tightened access to a few public members of gh class.
Made a few const (they are never modified after construction),
Made a couple private.
There are several more with scary access: full public non-const
(extents, e.g.) which is used all over and ... try not to think about it.
darcs-hash:20041210004122-32473-3ed8ee7f07ea9f13400f51f580dc1d29a4258a1a.gz
Diffstat (limited to 'Carpet/CarpetLib/src')
-rw-r--r-- | Carpet/CarpetLib/src/gh.hh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Carpet/CarpetLib/src/gh.hh b/Carpet/CarpetLib/src/gh.hh index f88e303c8..0bad3540a 100644 --- a/Carpet/CarpetLib/src/gh.hh +++ b/Carpet/CarpetLib/src/gh.hh @@ -55,15 +55,13 @@ public: public: // should be readonly // Fields - int reffact; // refinement factor - centering refcent; // vertex or cell centered + const int reffact; // refinement factor + const centering refcent; // vertex or cell centered + + const int mgfact; // default multigrid factor + const centering mgcent; // default (vertex or cell centered) - int mgfact; // default multigrid factor - centering mgcent; // default (vertex or cell centered) - - list<th<D>*> ths; // list of all time hierarchies - - ibbox baseextent; + const ibbox baseextent; vector<vector<ibbox> > bases; // [rl][ml] // TODO: invent structure for this @@ -71,6 +69,8 @@ public: // should be readonly rbnds outer_boundaries; // boundary descriptions of all grids rprocs processors; // processor numbers of all grids +private: + list<th<D>*> ths; // list of all time hierarchies list<dh<D>*> dhs; // list of all data hierarchies public: |