19 #include "../space/space.h"
20 #include "error_calculator.h"
21 #include "../refinement_selectors/selector.h"
22 #include "exceptions.h"
44 template<
typename Scalar>
61 template<
typename Scalar>
71 bool add_refinement(
ErrorCalculator<Scalar>* error_calculator,
double processed_error_squared,
double max_error_squared,
int element_inspected_i);
81 template<
typename Scalar>
89 bool add_refinement(
ErrorCalculator<Scalar>* error_calculator,
double processed_error_squared,
double max_error_squared,
int element_inspected_i);
99 template<
typename Scalar>
107 bool add_refinement(
ErrorCalculator<Scalar>* error_calculator,
double processed_error_squared,
double max_error_squared,
int element_inspected_i);
121 template<
typename Scalar>
123 public Hermes::Mixins::TimeMeasurable,
124 public Hermes::Mixins::Loggable,
125 public Hermes::Mixins::StateQueryable,
157 void set_regularization_level(
int regularization);
160 virtual bool isOkay()
const;
161 inline std::string getClassName()
const {
return "Adapt"; }
177 int calculate_attempted_element_refinements_count();
179 void adapt_postprocess(MeshSharedPtr* meshes,
int element_refinements_count);
195 virtual void apply_refinements(
ElementToRefine* elems_to_refine,
int num_elem_to_process);
208 void homogenize_shared_mesh_orders(MeshSharedPtr * meshes);
219 std::vector<SpaceSharedPtr<Scalar> >
spaces;
226 int elements_to_refine_count;
232 template<
typename T,
typename S>
friend class AdaptSolver;
Class utilizes parallel calculation.
ElementToRefine * elements_to_refine
Information about performed refinements.
AdaptivityStoppingCriterion< Scalar > * strategy
Current strategy.
Used to pass the instances of Space around.
std::vector< MeshSharedPtr > meshes
Meshes.
std::vector< SpaceSharedPtr< Scalar > > spaces
Spaces.
ErrorCalculator< Scalar > * errorCalculator
Error calculator.
Evaluation of an error between a (coarse) solution and a reference solution.
::xsd::cxx::tree::string< char, simple_type > string
C++ type corresponding to the string XML Schema built-in type.
A parent of all refinement selectors. Abstract class.
int num
Number of solution components (as in wf->neq).
virtual bool add_refinement(ErrorCalculator< Scalar > *error_calculator, double processed_error_squared, double max_error_squared, int element_inspected_i)=0
MeshFunctionSharedPtr< double > refinementInfoMeshFunctionGlobal
Mesh function for postprocessing the information about which elements have been refined - for the who...
int regularization
Regularization (max. level of hanging nodes) level.