/home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/discretization/mesh/no_adaptivity.hh Source File#

DiFfRG: /home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/discretization/mesh/no_adaptivity.hh Source File
DiFfRG
no_adaptivity.hh
Go to the documentation of this file.
1#pragma once
2
3// external libraries
4#include <deal.II/dofs/dof_handler.h>
5#include <deal.II/dofs/dof_tools.h>
6#include <deal.II/grid/grid_refinement.h>
7#include <deal.II/grid/tria.h>
8#include <deal.II/lac/vector.h>
9#include <deal.II/numerics/derivative_approximation.h>
10#include <deal.II/numerics/error_estimator.h>
11#include <deal.II/numerics/solution_transfer.h>
12
13// DiFfRG
16
17namespace DiFfRG
18{
19 using namespace dealii;
20
21 template <typename VectorType> class NoAdaptivity : public AbstractAdaptor<VectorType>
22 {
23 public:
25 virtual ~NoAdaptivity() = default;
26
34 virtual bool operator()(const double, VectorType &) override { return false; }
35
41 virtual bool adapt(VectorType &) override { return false; }
42 };
43} // namespace DiFfRG
Implement a simple interface to do all adaptivity tasks, i.e. solution transfer, reinit of dofHandler...
Definition abstract_adaptor.hh:11
Definition no_adaptivity.hh:22
virtual bool adapt(VectorType &) override
Force an adaptation and transfer the solution sol to the new mes.
Definition no_adaptivity.hh:41
virtual bool operator()(const double, VectorType &) override
Check if an adaptation step should be done and tranfer the given solution to the new mesh.
Definition no_adaptivity.hh:34
NoAdaptivity()
Definition no_adaptivity.hh:24
virtual ~NoAdaptivity()=default
Definition complex_math.hh:10