diff --git a/lib/algorithms/Preconditioner.h b/lib/algorithms/Preconditioner.h new file mode 100644 index 00000000..e62c3ab7 --- /dev/null +++ b/lib/algorithms/Preconditioner.h @@ -0,0 +1,19 @@ +#ifndef GRID_PRECONDITIONER_H +#define GRID_PRECONDITIONER_H + +namespace Grid { + + template class Preconditioner : public LinearFunction { + virtual void operator()(const Field &src, Field & psi)=0; + }; + + template class TrivialPrecon : public Preconditioner { + public: + void operator()(const Field &src, Field & psi){ + psi = src; + } + TrivialPrecon(void){}; + }; + +} +#endif