GRINS-0.6.0
Public Member Functions | Public Attributes | List of all members
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
 
std::tr1::shared_ptr< libMesh::EquationSystems > equation_system
 
std::tr1::shared_ptr< 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 print_qoi
 
bool do_adjoint_solve
 
std::tr1::shared_ptr< PostProcessedQuantities< libMesh::Real > > postprocessing
 
std::tr1::shared_ptr< libMesh::ErrorEstimator > error_estimator
 

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 49 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( std::tr1::shared_ptr<libMesh::EquationSystems>() ),
37  vis( std::tr1::shared_ptr<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( std::tr1::shared_ptr<PostProcessedQuantities<libMesh::Real> >() )
49  {
50  return;
51  }
std::tr1::shared_ptr< libMesh::EquationSystems > equation_system
unsigned int timesteps_per_perflog
unsigned int timesteps_per_vis
GRINS::MultiphysicsSystem * system
std::tr1::shared_ptr< PostProcessedQuantities< libMesh::Real > > postprocessing
std::tr1::shared_ptr< GRINS::Visualization > vis
GRINS::SolverContext::~SolverContext ( )
inline

Definition at line 54 of file solver_context.h.

54 {};

Member Data Documentation

bool GRINS::SolverContext::do_adjoint_solve
std::tr1::shared_ptr<libMesh::EquationSystems> GRINS::SolverContext::equation_system
std::tr1::shared_ptr<libMesh::ErrorEstimator> GRINS::SolverContext::error_estimator
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
std::tr1::shared_ptr<PostProcessedQuantities<libMesh::Real> > GRINS::SolverContext::postprocessing
bool GRINS::SolverContext::print_perflog

Definition at line 66 of file solver_context.h.

Referenced by GRINS::Simulation::run(), and GRINS::UnsteadySolver::solve().

bool GRINS::SolverContext::print_qoi
bool GRINS::SolverContext::print_scalars
GRINS::MultiphysicsSystem* GRINS::SolverContext::system
unsigned int GRINS::SolverContext::timesteps_per_perflog

Definition at line 60 of file solver_context.h.

Referenced by GRINS::Simulation::run(), and GRINS::UnsteadySolver::solve().

unsigned int GRINS::SolverContext::timesteps_per_vis

Definition at line 59 of file solver_context.h.

Referenced by GRINS::Simulation::run(), and GRINS::UnsteadySolver::solve().

std::tr1::shared_ptr<GRINS::Visualization> GRINS::SolverContext::vis

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

Generated on Mon Jun 22 2015 21:32:24 for GRINS-0.6.0 by  doxygen 1.8.9.1