Public Member Functions | |
| DoublingStepController (const TransientStepProblem &prob, const NonlinearSolver< double > &solver, const StepControlParameters &stepControl, const OutputControlParameters &outputControl, const RCP< ExprComparisonBase > &compare) | |
| void | setEventHandler (RCP< EventDetectorBase > e) |
| void | setStepHook (RCP< StepHookBase > h) |
| bool | run () const |
| void | write (int index, double t, const Expr &u) const |
Private Attributes | |
| TransientStepProblem | prob_ |
| StepControlParameters | stepControl_ |
| OutputControlParameters | outputControl_ |
| NonlinearSolver< double > | solver_ |
| RCP< ExprComparisonBase > | compare_ |
| RCP< EventDetectorBase > | eventHandler_ |
| RCP< StepHookBase > | stepHook_ |
Definition at line 132 of file SundanceDoublingStepController.hpp.
| Sundance::DoublingStepController::DoublingStepController | ( | const TransientStepProblem & | prob, |
| const NonlinearSolver< double > & | solver, | ||
| const StepControlParameters & | stepControl, | ||
| const OutputControlParameters & | outputControl, | ||
| const RCP< ExprComparisonBase > & | compare | ||
| ) | [inline] |
Definition at line 136 of file SundanceDoublingStepController.hpp.
| bool Sundance::DoublingStepController::run | ( | ) | const |
Definition at line 54 of file SundanceDoublingStepController.cpp.
References compare_, Sundance::copyDiscreteFunction(), eventHandler_, Sundance::getDiscreteFunctionVector(), Sundance::StepControlParameters::initialStepsize_, Playa::max(), Sundance::StepControlParameters::maxSteps_, Sundance::StepControlParameters::maxStepsizeFactor_, Playa::min(), Sundance::StepControlParameters::minStepsizeFactor_, outputControl_, PLAYA_ROOT_MSG1, PLAYA_ROOT_MSG2, PLAYA_ROOT_MSG3, PLAYA_ROOT_MSG5, Sundance::pow(), prob_, Sundance::setDiscreteFunctionVector(), solver_, Sundance::TransientStepProblem::step(), stepControl_, stepHook_, Sundance::StepControlParameters::stepOrder_, Sundance::StepControlParameters::stepsizeReductionSafetyFactor_, Sundance::StepControlParameters::tau_, Sundance::StepControlParameters::tStart_, Sundance::StepControlParameters::tStop_, Sundance::TransientStepProblem::uCur(), Sundance::updateDiscreteFunction(), Sundance::StepControlParameters::verbosity_, Sundance::OutputControlParameters::verbosity_, Playa::MPIComm::world(), write(), and Sundance::OutputControlParameters::writeInterval_.
| void Sundance::DoublingStepController::setEventHandler | ( | RCP< EventDetectorBase > | e | ) | [inline] |
Definition at line 151 of file SundanceDoublingStepController.hpp.
References eventHandler_.
| void Sundance::DoublingStepController::setStepHook | ( | RCP< StepHookBase > | h | ) | [inline] |
Definition at line 155 of file SundanceDoublingStepController.hpp.
References stepHook_.
| void Sundance::DoublingStepController::write | ( | int | index, |
| double | t, | ||
| const Expr & | u | ||
| ) | const |
Definition at line 254 of file SundanceDoublingStepController.cpp.
References Sundance::FieldWriter::addField(), Sundance::FieldWriter::addMesh(), Sundance::FieldWriterFactory::createWriter(), Sundance::OutputControlParameters::filename_, Sundance::getDiscreteFunctionMesh(), outputControl_, PLAYA_ROOT_MSG1, Sundance::Expr::size(), Sundance::toString(), Teuchos::toString(), Sundance::OutputControlParameters::verbosity_, Sundance::OutputControlParameters::wf_, and Sundance::FieldWriter::write().
Referenced by run().
RCP<ExprComparisonBase> Sundance::DoublingStepController::compare_ [private] |
Definition at line 170 of file SundanceDoublingStepController.hpp.
Referenced by run().
RCP<EventDetectorBase> Sundance::DoublingStepController::eventHandler_ [private] |
Definition at line 171 of file SundanceDoublingStepController.hpp.
Referenced by run(), and setEventHandler().
Definition at line 168 of file SundanceDoublingStepController.hpp.
Definition at line 166 of file SundanceDoublingStepController.hpp.
Referenced by run().
NonlinearSolver<double> Sundance::DoublingStepController::solver_ [private] |
Definition at line 169 of file SundanceDoublingStepController.hpp.
Referenced by run().
Definition at line 167 of file SundanceDoublingStepController.hpp.
Referenced by run().
RCP<StepHookBase> Sundance::DoublingStepController::stepHook_ [private] |
Definition at line 172 of file SundanceDoublingStepController.hpp.
Referenced by run(), and setStepHook().