Changeset 4571da for src/base/discretization.hpp
- Timestamp:
- Apr 27, 2012, 11:34:57 PM (14 years ago)
- Children:
- 1a92cf
- Parents:
- b2154a3
- File:
-
- 1 edited
-
src/base/discretization.hpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/base/discretization.hpp
rb2154a3 r4571da 28 28 { 29 29 public: 30 Discretization() : stencil(1.0) {} 31 Discretization(const Stencil& stencil_) : stencil(stencil_) {} 30 Discretization() : 31 stencil(1.0), 32 order(2) 33 {} 34 35 Discretization(const int& order) : 36 stencil(1.0), 37 order(order) 38 {} 39 40 Discretization(const Stencil& stencil_, const int& order) : 41 stencil(stencil_), 42 order(order) 43 {} 32 44 33 45 Discretization(std::string id) : 34 46 Object(id), 35 stencil(1.0) 47 stencil(1.0), 48 order(2) 36 49 {} 37 50 38 Discretization(std::string id, const Stencil& stencil_) :51 Discretization(std::string id, const int& order) : 39 52 Object(id), 40 stencil(stencil_) 53 stencil(1.0), 54 order(order) 55 {} 56 57 Discretization(std::string id, const Stencil& stencil_, const int& order) : 58 Object(id), 59 stencil(stencil_), 60 order(order) 41 61 {} 42 62 … … 45 65 virtual vmg_float OperatorPrefactor(const Grid& grid) const = 0; ///< Returns the prefactor of the operator. 46 66 47 /** 67 virtual void ModifyRightHandSide() {} 68 69 /** 48 70 * This function gets called whenever boundary points at inner boundaries are needed. 49 71 * Inner boundaries occur when using adaptive grid refinement. 50 * 72 * 51 73 * @param sol_fine Solution vector / fine level 52 74 * @param rhs_fine Right handside vector / fine level … … 60 82 61 83 private: 62 virtual void SetInnerBoundaryCompute(Grid& sol_fine, Grid& rhs_fine, Grid& sol_coarse) const = 0;84 virtual void SetInnerBoundaryCompute(Grid& sol_fine, Grid& rhs_fine, Grid& sol_coarse) const {} 63 85 64 86 protected: 65 87 VMG::Stencil stencil; 88 int order; 66 89 }; 67 90
Note:
See TracChangeset
for help on using the changeset viewer.
