source: src/level/level_operator.hpp@ 06e153

Last change on this file since 06e153 was b7b317, checked in by Julian Iseringhausen <isering@…>, 14 years ago

Fixed newly introduced error due to unexpected behaviour of git-svn. Sorry.

git-svn-id: https://svn.version.fz-juelich.de/scafacos/trunk@1800 5161e1c8-67bf-11de-9fd5-51895aff932f

  • Property mode set to 100644
File size: 910 bytes
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#include "level/stencils.hpp"
16
17namespace VMG
18{
19
20class Grid;
21class Multigrid;
22
23class LevelOperator : public Object
24{
25public:
26 LevelOperator(const Stencil& operatorRestrict_, const Stencil& operatorProlongate_) :
27 operatorRestrict(operatorRestrict_),
28 operatorProlongate(operatorProlongate_)
29 {}
30
31 virtual void Restrict(Multigrid& sol, Multigrid& rhs) = 0;
32 virtual void Prolongate(Multigrid& sol, Multigrid& rhs) = 0;
33
34protected:
35 Stencil& OperatorRestrict() {return operatorRestrict;}
36 Stencil& OperatorProlongate() {return operatorProlongate;}
37
38private:
39 Stencil operatorRestrict, operatorProlongate;
40};
41
42}
43
44#endif
Note: See TracBrowser for help on using the repository browser.