Changeset dfed1c for src/grid/grid_properties.hpp
- Timestamp:
- Nov 22, 2011, 9:22:10 PM (14 years ago)
- Children:
- facba0
- Parents:
- 66f24d
- File:
-
- 1 moved
-
src/grid/grid_properties.hpp (moved) (moved from src/grid/grid_indexing.hpp ) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/grid/grid_properties.hpp
r66f24d rdfed1c 1 1 /** 2 * @file grid_ indexing.hpp2 * @file grid_properties.hpp 3 3 * @author Julian Iseringhausen <isering@ins.uni-bonn.de> 4 4 * @date Mon Apr 18 12:54:05 2011 … … 8 8 */ 9 9 10 #ifndef GRID_ INDEXING_HPP_11 #define GRID_ INDEXING_HPP_10 #ifndef GRID_PROPERTIES_HPP_ 11 #define GRID_PROPERTIES_HPP_ 12 12 13 #include "base/defs.hpp" 13 14 #include "base/index.hpp" 14 15 #include "base/vector.hpp" … … 20 21 { 21 22 public: 22 const Index& Size() const {return size;} ///< Global grid size including boundary 23 const Index& Begin() const {return begin;} ///< Global index of first local grid point 24 const Index& End() const {return end;} ///< Global index of first non-local grid point 25 const Index& AlignmentBegin() const {return alignmentBegin;} ///< Global index of first point of the next higher level 26 const Index& AlignmentEnd() const {return alignmentEnd;} 23 GlobalIndices(); 24 25 const Index& BeginFinest() const {return begin_finest;} ///< Global index of first local grid point 26 const Index& EndFinest() const {return end_finest;} ///< Global index of first non-local grid point 27 const Index& SizeFinest() const {return size_finest;} ///< Global grid size including boundary 28 29 const Index& BeginLocal() const {return begin_local;} 30 const Index& EndLocal() const {return end_local;} 31 const Index& SizeLocal() const {return size_local;} 32 33 const Index& SizeGlobal() const {return size_global;} 34 27 35 const BT& BoundaryType() const {return boundary;} 28 36 29 Index& Size() {return size;} ///< Global grid size including boundary 30 Index& Begin() {return begin;} ///< Global index of first local grid point 31 Index& End() {return end;} ///< Global index of first non-local grid point 32 Index& AlignmentBegin() {return alignmentBegin;} ///< Global index of first point of the next higher level 33 Index& AlignmentEnd() {return alignmentEnd;} 37 Index& BeginFinest() {return begin_finest;} ///< Global index of first local grid point 38 Index& EndFinest() {return end_finest;} ///< Global index of first non-local grid point 39 Index& SizeFinest() {return size_finest;} ///< Global grid size including boundary 40 41 Index& BeginLocal() {return begin_local;} 42 Index& EndLocal() {return end_local;} 43 Index& SizeLocal() {return size_local;} 44 45 Index& SizeGlobal() {return size_global;} 46 34 47 BT& BoundaryType() {return boundary;} 35 48 36 49 private: 37 Index size; 38 Index begin; 39 Index end; 40 Index alignmentBegin, alignmentEnd; 50 Index begin_finest, end_finest, size_finest; 51 Index begin_local, end_local, size_local; 52 Index size_global; 41 53 BT boundary; 42 54 }; … … 45 57 { 46 58 public: 59 LocalIndices(); 60 47 61 const Index& Size() const {return size;} ///< Local grid size excluding halo 48 62 const Index& SizeTotal() const {return sizeTotal;} ///< Local grid size including halo and boundary … … 81 95 Index& AlignmentEnd() {return alignmentEnd;} 82 96 97 Index HasHalo1() const; 98 Index HasHalo2() const; 99 Index HasBoundary1() const; 100 Index HasBoundary2() const; 101 83 102 private: 84 103 Index size; … … 96 115 { 97 116 public: 117 SpatialExtent(); 118 98 119 const Vector& Size() const {return size;} 99 120 const Index& SizeFactor() const {return size_factor;} … … 118 139 } 119 140 120 #endif /* GRID_ INDEXING_HPP_ */141 #endif /* GRID_PROPERTIES_HPP_ */
Note:
See TracChangeset
for help on using the changeset viewer.
