/home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/discretization/common/abstract_adaptor.hh Source File#

DiFfRG: /home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/discretization/common/abstract_adaptor.hh Source File
DiFfRG
Discretization Framework for functional Renormalization Group flows
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:
13 virtual ~AbstractAdaptor() = default;
14
22 virtual bool operator()(const double t, VectorType &sol) = 0;
23
29 virtual bool adapt(VectorType &solution) = 0;
30 };
31} // 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.
virtual ~AbstractAdaptor()=default
Definition complex_math.hh:10