/home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/discretization/mesh/h_adaptivity.hh Source File#
|
DiFfRG
|
h_adaptivity.hh
Go to the documentation of this file.
54 if (adapt_level > 0 && t >= adapt_t - 1e-12 * adapt_dt && (t - last_adapt + 1e-12 * adapt_dt) >= adapt_dt) {
77 GridRefinement::refine_and_coarsen_fixed_fraction(triangulation, indicator, adapt_upper, adapt_lower);
Implement a simple interface to do all adaptivity tasks, i.e. solution transfer, reinit of dofHandler...
Definition abstract_adaptor.hh:11
Implement a simple interface to do all adaptivity tasks, i.e. solution transfer, reinit of dofHandler...
Definition h_adaptivity.hh:27
typename Discretization::VectorType VectorType
Definition h_adaptivity.hh:29
typename Assembler::Discretization Discretization
Definition h_adaptivity.hh:28
HAdaptivity(Assembler &assembler, const JSONValue &json)
Definition h_adaptivity.hh:33
virtual ~HAdaptivity()=default
virtual bool adapt(VectorType &solution) override
Force an adaptation and transfer the solution sol to the new mes.
Definition h_adaptivity.hh:67
virtual bool operator()(const double t, VectorType &sol) override
Check if an adaptation step should be done and tranfer the given solution to the new mesh.
Definition h_adaptivity.hh:52
double get_double(const std::string &key) const
Get the value of a key in the json object.
uint get_uint(const std::string &key) const
Get the value of a key in the json object.
Definition complex_math.hh:10
Generated by