Changeset ac6d04 for src/grid/grid.hpp
- Timestamp:
- Apr 10, 2012, 1:55:49 PM (14 years ago)
- Children:
- a40eea
- Parents:
- d24c2f
- File:
-
- 1 edited
-
src/grid/grid.hpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/grid/grid.hpp
rd24c2f rac6d04 37 37 } 38 38 39 Grid(const GlobalIndices& global_, const LocalIndices& local_, const SpatialExtent& extent_, 40 int level_ = 0, Multigrid* father_ = NULL) : 39 Grid(const GlobalIndices& global_, 40 const LocalIndices& local_, 41 const SpatialExtent& extent_, 42 int level_ = 0, 43 Multigrid* father_ = NULL) : 41 44 index_translations(this), 42 45 level(level_), … … 67 70 Grid& operator=(const Grid& rhs); 68 71 72 GlobalIndices& Global() {return global;} 73 LocalIndices& Local() {return local;} 74 SpatialExtent& Extent() {return extent;} 75 69 76 const GlobalIndices& Global() const {return global;} 70 77 const LocalIndices& Local() const {return local;} 71 78 const SpatialExtent& Extent() const {return extent;} 72 79 73 GlobalIndices& Global() {return global;}74 LocalIndices& Local() {return local;}75 SpatialExtent& Extent() {return extent;}76 77 80 GridIteratorSuite& Iterators() {return iterators;} 78 81 const GridIteratorSuite& Iterators() const {return iterators;} 79 80 const vmg_float& MeshWidth() const {return Extent().MeshWidth().X();} ///< Mesh width of current level81 82 82 83 static vmg_float& Correction() {return Grid::correction;} … … 167 168 inline int Grid::GlobalLinearIndex(int x, int y, int z) const 168 169 { 169 return z + global. SizeGlobal().Z() * (y + global.SizeGlobal().Y() * x);170 return z + global.GlobalSize().Z() * (y + global.GlobalSize().Y() * x); 170 171 } 171 172
Note:
See TracChangeset
for help on using the changeset viewer.
