29 #ifndef Rythmos_INTEGRATOR_BASE_HELPERS_HPP
30 #define Rythmos_INTEGRATOR_BASE_HELPERS_HPP
33 #include "Rythmos_IntegratorBaseHelpers.hpp"
43 template<
class Scalar>
44 void resetInitialConditions(
45 const Thyra::ModelEvaluatorBase::InArgs<double> &ic,
46 const Ptr<IntegratorBase<Scalar> > &integrator
49 const RCP<StepperBase<Scalar> > stepper = integrator->getNonconstStepper();
50 stepper->setInitialCondition(ic);
51 integrator->setStepper(stepper, integrator->getFwdTimeRange().upper());
58 #endif //Rythmos_INTEGRATOR_BASE_HELPERS_HPP