mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-15 02:05:37 +00:00
20 lines
433 B
C
20 lines
433 B
C
|
#ifndef GRID_PRECONDITIONER_H
|
||
|
#define GRID_PRECONDITIONER_H
|
||
|
|
||
|
namespace Grid {
|
||
|
|
||
|
template<class Field> class Preconditioner : public LinearFunction<Field> {
|
||
|
virtual void operator()(const Field &src, Field & psi)=0;
|
||
|
};
|
||
|
|
||
|
template<class Field> class TrivialPrecon : public Preconditioner<Field> {
|
||
|
public:
|
||
|
void operator()(const Field &src, Field & psi){
|
||
|
psi = src;
|
||
|
}
|
||
|
TrivialPrecon(void){};
|
||
|
};
|
||
|
|
||
|
}
|
||
|
#endif
|