25 #ifndef GRINS_ERROR_ESTIMATOR_FACTORY_BASE_H
26 #define GRINS_ERROR_ESTIMATOR_FACTORY_BASE_H
34 #include "libmesh/error_estimator.h"
79 virtual libMesh::UniquePtr<libMesh::ErrorEstimator>
create();
87 libmesh_error_msg(
"ERROR: must call set_getpot() before building ErrorEstimator!");
89 libmesh_error_msg(
"ERROR: must call set_system() before building ErrorEstimator!");
91 libmesh_error_msg(
"ERROR: must call set_estimator_options() before building ErrorEstimator!");
93 libMesh::UniquePtr<libMesh::ErrorEstimator>
96 libmesh_assert(new_estimator);
103 #endif // GRINS_ERROR_ESTIMATOR_FACTORY_BASE_H
static const ErrorEstimatorOptions * _estimator_options
Cache pointer to system.
static void set_estimator_options(const ErrorEstimatorOptions &estimator_options)
Builds VariableBase objects.
virtual libMesh::UniquePtr< libMesh::ErrorEstimator > build_error_estimator(const GetPot &input, MultiphysicsSystem &system, const ErrorEstimatorOptions &estimator_options)=0
Subclasses implement this method for building the ErrorEstimator object.
~ErrorEstimatorFactoryBase()
static const GetPot * _input
We store only a raw pointer here because we can't make a copy.
virtual libMesh::UniquePtr< libMesh::ErrorEstimator > create()
Subclasses implement the actual construction of the Base object in create().
static void set_system(MultiphysicsSystem &system)
Container for ErrorEstimator options.
Interface with libMesh for solving Multiphysics problems.
ErrorEstimatorFactoryBase(const std::string &estimator_name)
Abstract factory that provides availability of GetPot.
static MultiphysicsSystem * _system
Cache pointer to system.