GRINS-0.7.0
List of all members | Public Member Functions | Protected Member Functions
GRINS::AdjointResidualErrorEstimatorFactory Class Reference

#include <adjoint_error_estimator_factories.h>

Inheritance diagram for GRINS::AdjointResidualErrorEstimatorFactory:
Inheritance graph
[legend]
Collaboration diagram for GRINS::AdjointResidualErrorEstimatorFactory:
Collaboration graph
[legend]

Public Member Functions

 AdjointResidualErrorEstimatorFactory (const std::string &estimator_name)
 
 ~AdjointResidualErrorEstimatorFactory ()
 
- Public Member Functions inherited from GRINS::AdjointErrorEstimatorFactoryBase< libMesh::AdjointResidualErrorEstimator >
 AdjointErrorEstimatorFactoryBase (const std::string &estimator_name)
 
 ~AdjointErrorEstimatorFactoryBase ()
 
- Public Member Functions inherited from GRINS::ErrorEstimatorFactoryBase
 ErrorEstimatorFactoryBase (const std::string &estimator_name)
 
 ~ErrorEstimatorFactoryBase ()
 
- Public Member Functions inherited from GRINS::FactoryWithGetPot< libMesh::ErrorEstimator >
 FactoryWithGetPot (const std::string &name)
 
 ~FactoryWithGetPot ()
 

Protected Member Functions

virtual void set_adjoint_estimator_options (const GetPot &input, const ErrorEstimatorOptions &estimator_options, libMesh::AdjointResidualErrorEstimator &estimator)
 
- Protected Member Functions inherited from GRINS::AdjointErrorEstimatorFactoryBase< libMesh::AdjointResidualErrorEstimator >
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. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from GRINS::ErrorEstimatorFactoryBase
static void set_system (MultiphysicsSystem &system)
 
static void set_estimator_options (const ErrorEstimatorOptions &estimator_options)
 
- Static Public Member Functions inherited from GRINS::FactoryWithGetPot< libMesh::ErrorEstimator >
static void set_getpot (const GetPot &input)
 
- Static Protected Attributes inherited from GRINS::ErrorEstimatorFactoryBase
static MultiphysicsSystem_system = NULL
 Cache pointer to system. More...
 
static const ErrorEstimatorOptions_estimator_options = NULL
 Cache pointer to system. More...
 
- Static Protected Attributes inherited from GRINS::FactoryWithGetPot< libMesh::ErrorEstimator >
static const GetPot * _input
 We store only a raw pointer here because we can't make a copy. More...
 

Detailed Description

Definition at line 76 of file adjoint_error_estimator_factories.h.

Constructor & Destructor Documentation

GRINS::AdjointResidualErrorEstimatorFactory::AdjointResidualErrorEstimatorFactory ( const std::string &  estimator_name)
inline

Definition at line 80 of file adjoint_error_estimator_factories.h.

81  : AdjointErrorEstimatorFactoryBase<libMesh::AdjointResidualErrorEstimator>(estimator_name)
82  {}
GRINS::AdjointResidualErrorEstimatorFactory::~AdjointResidualErrorEstimatorFactory ( )
inline

Definition at line 84 of file adjoint_error_estimator_factories.h.

84 {};

Member Function Documentation

void GRINS::AdjointResidualErrorEstimatorFactory::set_adjoint_estimator_options ( const GetPot &  input,
const ErrorEstimatorOptions estimator_options,
libMesh::AdjointResidualErrorEstimator &  estimator 
)
protectedvirtual

Implements GRINS::AdjointErrorEstimatorFactoryBase< libMesh::AdjointResidualErrorEstimator >.

Definition at line 34 of file adjoint_error_estimator_factories.C.

References GRINS::ErrorEstimatorOptions::patch_reuse().

37  {
38  libMesh::PatchRecoveryErrorEstimator*
39  p1 = new libMesh::PatchRecoveryErrorEstimator;
40 
41  estimator.primal_error_estimator().reset( p1 );
42 
43  libMesh::PatchRecoveryErrorEstimator*
44  p2 = new libMesh::PatchRecoveryErrorEstimator;
45 
46  estimator.dual_error_estimator().reset( p2 );
47 
48  bool patch_reuse = estimator_options.patch_reuse();
49  estimator.primal_error_estimator()->error_norm.set_type( 0, libMesh::H1_SEMINORM );
50  p1->set_patch_reuse( patch_reuse );
51 
52  estimator.dual_error_estimator()->error_norm.set_type( 0, libMesh::H1_SEMINORM );
53  p2->set_patch_reuse( patch_reuse );
54  }

The documentation for this class was generated from the following files:

Generated on Thu Jun 2 2016 21:52:30 for GRINS-0.7.0 by  doxygen 1.8.10