NoAdaptivity< VectorType > Class Template Reference#

DiFfRG: DiFfRG::NoAdaptivity< VectorType > Class Template Reference
DiFfRG
Discretization Framework for functional Renormalization Group flows
DiFfRG::NoAdaptivity< VectorType > Class Template Reference

#include <no_adaptivity.hh>

Inheritance diagram for DiFfRG::NoAdaptivity< VectorType >:
DiFfRG::AbstractAdaptor< VectorType >

Public Member Functions

 NoAdaptivity ()
 
template<typename AssemblerOrDiscretization >
requires (!std::same_as<std::remove_cvref_t<AssemblerOrDiscretization>, NoAdaptivity>) && std::same_as<typename std::remove_cvref_t<AssemblerOrDiscretization>::VectorType, VectorType>
 NoAdaptivity (const AssemblerOrDiscretization &)
 Deduction-only constructor.
 
virtual ~NoAdaptivity ()=default
 
virtual bool operator() (const double, VectorType &) override
 Check if an adaptation step should be done and tranfer the given solution to the new mesh.
 
virtual bool adapt (VectorType &) override
 Force an adaptation and transfer the solution sol to the new mes.
 
- Public Member Functions inherited from DiFfRG::AbstractAdaptor< VectorType >
virtual ~AbstractAdaptor ()=default
 

Constructor & Destructor Documentation

◆ NoAdaptivity() [1/2]

template<typename VectorType >
DiFfRG::NoAdaptivity< VectorType >::NoAdaptivity ( )
inline

◆ NoAdaptivity() [2/2]

template<typename VectorType >
template<typename AssemblerOrDiscretization >
requires (!std::same_as<std::remove_cvref_t<AssemblerOrDiscretization>, NoAdaptivity>) && std::same_as<typename std::remove_cvref_t<AssemblerOrDiscretization>::VectorType, VectorType>
DiFfRG::NoAdaptivity< VectorType >::NoAdaptivity ( const AssemblerOrDiscretization & )
inlineexplicit

Deduction-only constructor.

NoAdaptivity needs nothing from the assembler; taking one lets a driver write NoAdaptivity mesh_adaptor(assembler); next to HAdaptivity mesh_adaptor(assembler, json); instead of respelling VectorType. The first constraint keeps this template from hijacking the copy constructor, the second turns a mismatched argument into a clean substitution failure rather than a silently wrong adaptor.

◆ ~NoAdaptivity()

template<typename VectorType >
virtual DiFfRG::NoAdaptivity< VectorType >::~NoAdaptivity ( )
virtualdefault

Member Function Documentation

◆ adapt()

template<typename VectorType >
virtual bool DiFfRG::NoAdaptivity< VectorType >::adapt ( VectorType & )
inlineoverridevirtual

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

Parameters
solutionto be transferred

Implements DiFfRG::AbstractAdaptor< VectorType >.

◆ operator()()

template<typename VectorType >
virtual bool DiFfRG::NoAdaptivity< VectorType >::operator() ( const double ,
VectorType &  )
inlineoverridevirtual

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

Implements DiFfRG::AbstractAdaptor< VectorType >.


The documentation for this class was generated from the following file:
  • /home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/discretization/mesh/no_adaptivity.hh