DiFfRG
Loading...
Searching...
No Matches
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 >:
DiFfRG::NoAdaptivity< 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 >

Implement a simple interface to do all adaptivity tasks, i.e. solution transfer, reinit of dofHandlers, etc.

Template Parameters
AssemblerThe used assembler should implement the methods refinement_indicator and reinit

Member Function Documentation

◆ adapt()

template<typename VectorType >
virtual bool DiFfRG::AbstractAdaptor< VectorType >::adapt ( VectorType & solution)
pure virtual

Force an adaptation and transfer the solution sol to the new mes.

Parameters
solutionto be transferred

Implemented in DiFfRG::NoAdaptivity< VectorType >.

◆ operator()()

template<typename VectorType >
virtual bool DiFfRG::AbstractAdaptor< VectorType >::operator() ( const double t,
VectorType & sol )
pure virtual

Check if an adaptation step should be done and tranfer the given solution to the new mesh.

Parameters
tCurrent time; at adapt_dt time distances we perform an adaptation
solCurrent 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: