Changeset dfed1c for src/interface/interface.hpp
- Timestamp:
- Nov 22, 2011, 9:22:10 PM (14 years ago)
- Children:
- facba0
- Parents:
- 66f24d
- File:
-
- 1 edited
-
src/interface/interface.hpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/interface/interface.hpp
r66f24d rdfed1c 14 14 15 15 #include "base/object.hpp" 16 #include "grid/grid_ indexing.hpp"16 #include "grid/grid_properties.hpp" 17 17 18 18 namespace VMG … … 25 25 { 26 26 public: 27 Interface(BC boundary, int levelMin, int levelMax, vmg_float box_begin, vmg_float box_end, 28 int coarseningSteps=0, vmg_float alpha=1.6); 27 Interface(const Boundary& boundary, const int& levelMin, const int& levelMax, 28 const Vector& box_offset, const vmg_float box_size, 29 int coarseningSteps=0, vmg_float alpha=1.6) : 30 bc(boundary), 31 levelMin(levelMin), 32 levelMax(levelMax) 33 { 34 InitInterface(box_offset, box_size, coarseningSteps, alpha); 35 } 29 36 30 37 virtual ~Interface() {} … … 35 42 const std::vector<GlobalIndices>& Global() const {return global;} 36 43 const std::vector<SpatialExtent>& Extent() const {return extent;} 37 const BC& BoundaryConditions() const {return bc;} 44 45 const GlobalIndices& Global(const int& level) const 46 { 47 return global[levelMax - level]; 48 } 49 50 const SpatialExtent& Extent(const int& level) const 51 { 52 return extent[levelMax - level]; 53 } 54 55 const Boundary& BoundaryConditions() const {return bc;} 38 56 39 57 const int& MinLevel() const {return levelMin;} … … 41 59 42 60 private: 61 void InitInterface(const Vector& box_offset, const vmg_float& box_end, 62 const int& coarseningSteps, const vmg_float& alpha); 63 43 64 std::vector<GlobalIndices> global; 44 65 std::vector<SpatialExtent> extent; 45 66 46 B Cbc;67 Boundary bc; 47 68 48 69 int levelMin, levelMax;
Note:
See TracChangeset
for help on using the changeset viewer.
