DiFfRG
Loading...
Searching...
No Matches
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
33 virtual bool operator()(const double, VectorType &) override { return false; }
34
40 virtual bool adapt(VectorType &) override { return false; }
41 };
42} // 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:40
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:33
NoAdaptivity()
Definition no_adaptivity.hh:24
Definition complex_math.hh:14