AbstractAdaptor< VectorType > Class Template Reference#
|
DiFfRG
|
DiFfRG::AbstractAdaptor< VectorType > Class Template Referenceabstract
Implement a simple interface to do all adaptivity tasks, i.e. solution transfer, reinit of dofHandlers, etc. More...
#include <abstract_adaptor.hh>
Inheritance diagram for DiFfRG::AbstractAdaptor< VectorType >:
Public Member Functions | |
| 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 bool | adapt (VectorType &solution)=0 |
| Force an adaptation and transfer the solution sol to the new mes. | |
Detailed Description
template<typename VectorType>
class DiFfRG::AbstractAdaptor< VectorType >
class DiFfRG::AbstractAdaptor< VectorType >
Implement a simple interface to do all adaptivity tasks, i.e. solution transfer, reinit of dofHandlers, etc.
- Template Parameters
-
Assembler The used assembler should implement the methods refinement_indicator and reinit
Member Function Documentation
◆ adapt()
template<typename VectorType >
|
pure virtual |
Force an adaptation and transfer the solution sol to the new mes.
- Parameters
-
solution to be transferred
Implemented in DiFfRG::NoAdaptivity< VectorType >.
◆ operator()()
template<typename VectorType >
|
pure virtual |
Check if an adaptation step should be done and tranfer the given solution to the new mesh.
- Parameters
-
t Current time; at adapt_dt time distances we perform an adaptation sol Current solution
- Returns
- true if adapation has happened, false otherwise
Implemented in DiFfRG::NoAdaptivity< VectorType >.
The documentation for this class was generated from the following file:
- /home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/discretization/common/abstract_adaptor.hh
Generated by