Changeset f57182 for src/grid/grid.hpp
- Timestamp:
- Mar 30, 2013, 2:44:52 PM (13 years ago)
- Children:
- 8180d8
- Parents:
- d13e27
- git-author:
- Julian Iseringhausen <isering@…> (06/11/12 14:02:16)
- git-committer:
- Julian Iseringhausen <isering@…> (03/30/13 14:44:52)
- File:
-
- 1 edited
-
src/grid/grid.hpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/grid/grid.hpp
rd13e27 rf57182 107 107 vmg_float& operator()(const Index& index); 108 108 109 const vmg_float& operator()(int x, int y, int z) const; ///< Returns a reference to the requested gridpoint. 110 const vmg_float& operator()(const Index& index) const; 111 109 112 const vmg_float& GetVal(int x, int y, int z) const; ///< Returns the value of a requested gridpoint. 110 113 const vmg_float& GetVal(const Index& index) const; … … 138 141 bool IsActive() const {return Local().Size().Product() > 0;} 139 142 143 Vector GetSpatialPos(const Index& index_local) const; 144 Index GetGlobalIndex(const Vector& pos) const; 145 140 146 private: 141 147 void InitGrid(); … … 167 173 } 168 174 175 inline const vmg_float& Grid::operator()(int x, int y, int z) const 176 { 177 return grid[z + local.SizeTotal().Z() * (y + local.SizeTotal().Y() * x)]; 178 } 179 180 inline const vmg_float& Grid::operator()(const Index& index) const 181 { 182 return this->operator()(index.X(), index.Y(), index.Z()); 183 } 184 169 185 inline const vmg_float& Grid::GetVal(int x, int y, int z) const 170 186 {
Note:
See TracChangeset
for help on using the changeset viewer.
