Changeset ac6d04 for src/grid/is_grid.hpp
- Timestamp:
- Apr 10, 2012, 1:55:49 PM (14 years ago)
- Children:
- a40eea
- Parents:
- d24c2f
- File:
-
- 1 edited
-
src/grid/is_grid.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/grid/is_grid.hpp
rd24c2f rac6d04 154 154 inline int IsGrid<T>::GlobalLinearIndex(int x, int y, int z) const 155 155 { 156 return z + global. SizeGlobal().Z() * (y + global.SizeGlobal().Y() * x);156 return z + global.GlobalSize().Z() * (y + global.GlobalSize().Y() * x); 157 157 } 158 158 … … 160 160 inline int IsGrid<T>::GlobalLinearIndex(const Index& index) const 161 161 { 162 return GlobalLinearIndex(index.X(), index.Y(), index.Z());162 return index.Z() + global.GlobalSize().Z() * (index.Y() + global.GlobalSize().Y() * index.X()); 163 163 } 164 164
Note:
See TracChangeset
for help on using the changeset viewer.
