55 TEMPUS_FUNC_TIME_MONITOR(
"Tempus::StepperPhysicsStateTest::takeStep()");
57 RCP<Tempus::SolutionState<Scalar> > currentState =
58 solutionHistory->getCurrentState();
60 typedef Thyra::ModelEvaluatorBase MEB;
61 this->
inArgs_.set_x(currentState->getX());
62 if (this->
inArgs_.supports(MEB::IN_ARG_t))
63 this->
inArgs_.set_t(currentState->getTime());
70 if (this->
inArgs_.supports(MEB::IN_ARG_x_dot))
71 this->
inArgs_.set_x_dot(Teuchos::null);
72 this->
outArgs_.set_f(currentState->getXDot());
77 RCP<Tempus::SolutionState<Scalar> > workingState =
78 solutionHistory->getWorkingState();
79 const Scalar dt = workingState->getTimeStep();
80 Thyra::V_VpStV(Teuchos::outArg(*(workingState->getX())),
81 *(currentState->getX()), dt, *(currentState->getXDot()));
83 RCP<PhysicsStateCounter<Scalar> > pSC =
84 Teuchos::rcp_dynamic_cast<PhysicsStateCounter<Scalar> >(
85 workingState->getPhysicsState());
86 int counter = pSC->getCounter();
88 pSC->setCounter(counter);
91 workingState->setOrder(this->
getOrder());