25 #ifndef GRINS_ADJOINT_ERROR_ESTIMATOR_FACTORIES_H 
   26 #define GRINS_ADJOINT_ERROR_ESTIMATOR_FACTORIES_H 
   32 #include "libmesh/adjoint_residual_error_estimator.h" 
   33 #include "libmesh/adjoint_refinement_estimator.h" 
   34 #include "libmesh/qoi_set.h" 
   38   template<
typename EstimatorType>
 
   50     virtual libMesh::UniquePtr<libMesh::ErrorEstimator>
 
   54       libMesh::UniquePtr<libMesh::ErrorEstimator>
 
   55         raw_error_estimator( 
new EstimatorType );
 
   58       EstimatorType* adjoint_error_estimator =
 
   59         libMesh::libmesh_cast_ptr<EstimatorType*>(raw_error_estimator.get() );
 
   62       libMesh::QoISet qoi_set(system);
 
   63       adjoint_error_estimator->qoi_set() = qoi_set;
 
   68       return raw_error_estimator;
 
   73                                                 EstimatorType& estimator ) =0;
 
   90                                                 libMesh::AdjointResidualErrorEstimator& estimator );
 
  107                                                 libMesh::AdjointRefinementEstimator& estimator );
 
  111 #endif // GRINS_ADJOINT_ERROR_ESTIMATOR_FACTORIES_H 
virtual libMesh::UniquePtr< libMesh::ErrorEstimator > build_error_estimator(const GetPot &input, MultiphysicsSystem &system, const ErrorEstimatorOptions &estimator_options)
Subclasses implement this method for building the ErrorEstimator object. 
 
virtual void set_adjoint_estimator_options(const GetPot &input, const ErrorEstimatorOptions &estimator_options, libMesh::AdjointResidualErrorEstimator &estimator)
 
~AdjointErrorEstimatorFactoryBase()
 
Builds VariableBase objects. 
 
~AdjointResidualErrorEstimatorFactory()
 
virtual void set_adjoint_estimator_options(const GetPot &input, const ErrorEstimatorOptions &estimator_options, libMesh::AdjointRefinementEstimator &estimator)
 
Container for ErrorEstimator options. 
 
~AdjointRefinementErrorEstimatorFactory()
 
Interface with libMesh for solving Multiphysics problems. 
 
virtual void set_adjoint_estimator_options(const GetPot &input, const ErrorEstimatorOptions &estimator_options, EstimatorType &estimator)=0
 
AdjointRefinementErrorEstimatorFactory(const std::string &estimator_name)
 
AdjointErrorEstimatorFactoryBase(const std::string &estimator_name)
 
AdjointResidualErrorEstimatorFactory(const std::string &estimator_name)