| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * @file level_operator.hpp
|
|---|
| 3 | * @author Julian Iseringhausen <isering@ins.uni-bonn.de>
|
|---|
| 4 | * @date Mon Apr 18 12:59:28 2011
|
|---|
| 5 | *
|
|---|
| 6 | * @brief VMG::LevelOperator
|
|---|
| 7 | *
|
|---|
| 8 | */
|
|---|
| 9 |
|
|---|
| 10 | #ifndef LEVEL_OPERATOR_HPP_
|
|---|
| 11 | #define LEVEL_OPERATOR_HPP_
|
|---|
| 12 |
|
|---|
| 13 | #include "base/object.hpp"
|
|---|
| 14 | #include "base/stencil.hpp"
|
|---|
| 15 |
|
|---|
| 16 | namespace VMG
|
|---|
| 17 | {
|
|---|
| 18 |
|
|---|
| 19 | class Grid;
|
|---|
| 20 | class Multigrid;
|
|---|
| 21 |
|
|---|
| 22 | class LevelOperator : public Object
|
|---|
| 23 | {
|
|---|
| 24 | public:
|
|---|
| 25 | LevelOperator(const Stencil& operatorRestrict_, const Stencil& operatorProlongate_) :
|
|---|
| 26 | operatorRestrict(operatorRestrict_),
|
|---|
| 27 | operatorProlongate(operatorProlongate_)
|
|---|
| 28 | {}
|
|---|
| 29 |
|
|---|
| 30 | virtual void Restrict(Multigrid& sol, Multigrid& rhs) = 0;
|
|---|
| 31 | virtual void Prolongate(Multigrid& sol, Multigrid& rhs) = 0;
|
|---|
| 32 |
|
|---|
| 33 | protected:
|
|---|
| 34 | Stencil& OperatorRestrict() {return operatorRestrict;}
|
|---|
| 35 | Stencil& OperatorProlongate() {return operatorProlongate;}
|
|---|
| 36 |
|
|---|
| 37 | private:
|
|---|
| 38 | Stencil operatorRestrict, operatorProlongate;
|
|---|
| 39 | };
|
|---|
| 40 |
|
|---|
| 41 | }
|
|---|
| 42 |
|
|---|
| 43 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.