GRINS-0.8.0
List of all members | Public Member Functions | Public Attributes
GRINS::SolverContext Class Reference

Simple class to hold objects passed to Solver::solve. More...

#include <solver_context.h>

Collaboration diagram for GRINS::SolverContext:
Collaboration graph
[legend]

Public Member Functions

 SolverContext ()
 
 ~SolverContext ()
 

Public Attributes

GRINS::MultiphysicsSystemsystem
 
SharedPtr< libMesh::EquationSystems > equation_system
 
SharedPtr< GRINS::Visualizationvis
 
unsigned int timesteps_per_vis
 
unsigned int timesteps_per_perflog
 
bool output_vis
 
bool output_adjoint
 
bool output_residual
 
bool output_residual_sensitivities
 
bool output_solution_sensitivities
 
bool print_perflog
 
bool print_scalars
 
bool do_adjoint_solve
 
SharedPtr< QoIOutputqoi_output
 
SharedPtr< PostProcessedQuantities< libMesh::Real > > postprocessing
 
SharedPtr< libMesh::ErrorEstimator > error_estimator
 
bool have_restart
 

Detailed Description

Simple class to hold objects passed to Solver::solve.

Allows some flexibility for adding objects needed to pass to the Solver::solve method so that the solver can still be agnostic to creation etc. of those objects, but can operate on them.

Definition at line 51 of file solver_context.h.

Constructor & Destructor Documentation

GRINS::SolverContext::SolverContext ( )

Definition at line 34 of file solver_context.C.

35  : system(NULL),
36  equation_system( SharedPtr<libMesh::EquationSystems>() ),
37  vis( SharedPtr<GRINS::Visualization>() ),
38  timesteps_per_vis( 1 ),
40  output_vis( false ),
41  output_adjoint(false),
42  output_residual( false ),
45  print_perflog( false ),
46  print_scalars( false ),
47  do_adjoint_solve(false),
48  postprocessing( SharedPtr<PostProcessedQuantities<libMesh::Real> >() ),
49  have_restart(false)
50  {}
SharedPtr< libMesh::EquationSystems > equation_system
SharedPtr< PostProcessedQuantities< libMesh::Real > > postprocessing
unsigned int timesteps_per_perflog
unsigned int timesteps_per_vis
GRINS::MultiphysicsSystem * system
SharedPtr< GRINS::Visualization > vis
GRINS::SolverContext::~SolverContext ( )
inline

Definition at line 56 of file solver_context.h.

56 {};

Member Data Documentation

bool GRINS::SolverContext::do_adjoint_solve
SharedPtr<libMesh::EquationSystems> GRINS::SolverContext::equation_system
SharedPtr<libMesh::ErrorEstimator> GRINS::SolverContext::error_estimator
bool GRINS::SolverContext::have_restart
bool GRINS::SolverContext::output_adjoint
bool GRINS::SolverContext::output_residual
bool GRINS::SolverContext::output_residual_sensitivities
bool GRINS::SolverContext::output_solution_sensitivities
bool GRINS::SolverContext::output_vis
SharedPtr<PostProcessedQuantities<libMesh::Real> > GRINS::SolverContext::postprocessing
bool GRINS::SolverContext::print_perflog
bool GRINS::SolverContext::print_scalars
SharedPtr<QoIOutput> GRINS::SolverContext::qoi_output
GRINS::MultiphysicsSystem* GRINS::SolverContext::system
unsigned int GRINS::SolverContext::timesteps_per_perflog
unsigned int GRINS::SolverContext::timesteps_per_vis
SharedPtr<GRINS::Visualization> GRINS::SolverContext::vis

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

Generated on Tue Dec 19 2017 12:47:32 for GRINS-0.8.0 by  doxygen 1.8.9.1