Go to the documentation of this file.
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
WeightedPatchRecoveryErrorEstimator & operator=(const WeightedPatchRecoveryErrorEstimator &)=default
Manages consistently variables, degrees of freedom, and coefficient vectors.
Class to compute the error contribution for a range of elements.
This class implements the Patch Recovery error indicator.
ErrorEstimatorType
Defines an enum for the different types of error estimators which are available.
The libMesh namespace provides an interface to certain functionality in the library.
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.
const WeightedPatchRecoveryErrorEstimator & error_estimator
ErrorVector & error_per_cell
The ErrorVector is a specialization of the StatisticsVector for error data computed on a finite eleme...
virtual ~WeightedPatchRecoveryErrorEstimator()=default
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 StoredRange class defines a contiguous, divisible set of objects.
void operator()(const ConstElemRange &range) const
virtual ErrorEstimatorType type() const override
const System & system
Function to set the boolean patch_reuse in case the user wants to change the default behaviour of pat...
EstimateError(const System &sys, const WeightedPatchRecoveryErrorEstimator &ee, ErrorVector &epc)