DiFfRG
Loading...
Searching...
No Matches
abstract_adaptor.hh
Go to the documentation of this file.
1#pragma once
2
3namespace DiFfRG
4{
10 template <typename VectorType> class AbstractAdaptor
11 {
12 public:
20 virtual bool operator()(const double t, VectorType &sol) = 0;
21
27 virtual bool adapt(VectorType &solution) = 0;
28 };
29} // namespace DiFfRG
Implement a simple interface to do all adaptivity tasks, i.e. solution transfer, reinit of dofHandler...
Definition abstract_adaptor.hh:11
virtual bool adapt(VectorType &solution)=0
Force an adaptation and transfer the solution sol to the new mes.
virtual bool operator()(const double t, VectorType &sol)=0
Check if an adaptation step should be done and tranfer the given solution to the new mesh.
Definition complex_math.hh:14