20 #ifndef LIBMESH_WEIGHTED_PATCH_RECOVERY_ERROR_ESTIMATOR_H 21 #define LIBMESH_WEIGHTED_PATCH_RECOVERY_ERROR_ESTIMATOR_H 27 #include "libmesh/elem_range.h" 28 #include "libmesh/error_estimator.h" 29 #include "libmesh/fem_function_base.h" 30 #include "libmesh/patch_recovery_error_estimator.h" 31 #include "libmesh/patch.h" 77 bool estimate_parent_error =
false)
override;
125 #endif // LIBMESH_WEIGHTED_PATCH_RECOVERY_ERROR_ESTIMATOR_H void operator()(const ConstElemRange &range) const
virtual void estimate_error(const System &system, ErrorVector &error_per_cell, const NumericVector< Number > *solution_vector=nullptr, bool estimate_parent_error=false) override
This function uses the Patch Recovery error estimate to estimate the error on each cell...
The ErrorVector is a specialization of the StatisticsVector for error data computed on a finite eleme...
ErrorEstimatorType
Defines an enum for the different types of error estimators which are available.
virtual ~WeightedPatchRecoveryErrorEstimator()=default
const System & system
Function to set the boolean patch_reuse in case the user wants to change the default behaviour of pat...
The StoredRange class defines a contiguous, divisible set of objects.
virtual ErrorEstimatorType type() const override
The libMesh namespace provides an interface to certain functionality in the library.
EstimateError(const System &sys, const WeightedPatchRecoveryErrorEstimator &ee, ErrorVector &epc)
Manages consistently variables, degrees of freedom, and coefficient vectors.
WeightedPatchRecoveryErrorEstimator & operator=(const WeightedPatchRecoveryErrorEstimator &)=default
ErrorVector & error_per_cell
Class to compute the error contribution for a range of elements.
This class implements the Patch Recovery error indicator.
const WeightedPatchRecoveryErrorEstimator & error_estimator
WeightedPatchRecoveryErrorEstimator()=default
Constructor.
std::vector< FEMFunctionBase< Number > * > weight_functions
Vector of fem function base pointers, the user will fill this in with pointers to the appropriate wei...
This class implements the Patch Recovery error indicator.