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;
The ErrorVector is a specialization of the StatisticsVector for error data computed on a finite eleme...
Provides a uniform interface to vector storage schemes for different linear algebra libraries.
This class implements the Patch Recovery error indicator.
The StoredRange class defines a contiguous, divisible set of objects.
Manages consistently variables, degrees of freedom, and coefficient vectors.
Class to compute the error contribution for a range of elements.
EstimateError(const System &sys, const WeightedPatchRecoveryErrorEstimator &ee, ErrorVector &epc)
const System & system
Function to set the boolean patch_reuse in case the user wants to change the default behaviour of pat...
ErrorVector & error_per_cell
void operator()(const ConstElemRange &range) const
const WeightedPatchRecoveryErrorEstimator & error_estimator
This class implements the Patch Recovery error indicator.
virtual ~WeightedPatchRecoveryErrorEstimator()=default
WeightedPatchRecoveryErrorEstimator(const WeightedPatchRecoveryErrorEstimator &)=default
Copy/move ctor, copy/move assignment operator, and destructor are all explicitly defaulted for this c...
virtual ErrorEstimatorType type() const override
WeightedPatchRecoveryErrorEstimator(WeightedPatchRecoveryErrorEstimator &&)=default
WeightedPatchRecoveryErrorEstimator()=default
Constructor.
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.
std::vector< FEMFunctionBase< Number > * > weight_functions
Vector of fem function base pointers, the user will fill this in with pointers to the appropriate wei...
WeightedPatchRecoveryErrorEstimator & operator=(const WeightedPatchRecoveryErrorEstimator &)=default
The libMesh namespace provides an interface to certain functionality in the library.
ErrorEstimatorType
Defines an enum for the different types of error estimators which are available.