12 namespace Tempus_Unit_Test {
17 using Teuchos::rcp_const_cast;
18 using Teuchos::rcp_dynamic_cast;
19 using Teuchos::sublist;
29 stepper->setModel(model);
30 stepper->initialize();
40 bool useFSAL = stepper->getUseFSAL();
41 std::string ICConsistency = stepper->getICConsistency();
42 bool ICConsistencyCheck = stepper->getICConsistencyCheck();
43 bool useEmbedded = stepper->getUseEmbedded();
44 bool zeroInitialGuess = stepper->getZeroInitialGuess();
54 A(0, 0) = 0.2928932188134524;
56 A(1, 0) = 0.7071067811865476;
57 A(1, 1) = 0.2928932188134524;
60 b(0) = 0.7071067811865476;
61 b(1) = 0.2928932188134524;
64 c(0) = 0.2928932188134524;
70 stepper->setAppAction(modifier);
71 stepper->initialize();
73 stepper->setAppAction(modifierX);
74 stepper->initialize();
76 stepper->setAppAction(observer);
77 stepper->initialize();
79 stepper->setSolver(solver);
80 stepper->initialize();
82 stepper->setUseFSAL(useFSAL);
83 stepper->initialize();
85 stepper->setICConsistency(ICConsistency);
86 stepper->initialize();
88 stepper->setICConsistencyCheck(ICConsistencyCheck);
89 stepper->initialize();
91 stepper->setUseEmbedded(useEmbedded);
92 stepper->initialize();
94 stepper->setZeroInitialGuess(zeroInitialGuess);
95 stepper->initialize();
98 stepper->setTableau(A, b, c, order, order, order);
99 stepper->initialize();
104 model, solver, useFSAL, ICConsistency, ICConsistencyCheck, useEmbedded,
105 zeroInitialGuess, modifier, A, b, c, order, order, order, bstar));
General Implicit Runge-Kutta Butcher Tableau.
Default observer for StepperRK.
void testFactoryConstruction(std::string stepperType, const Teuchos::RCP< const Thyra::ModelEvaluator< double > > &model)
Unit test utility for Stepper construction through StepperFactory.
Sine-Cosine model problem from Rythmos. This is a canonical Sine-Cosine differential equation with a...
Teuchos::RCP< Teuchos::ParameterList > defaultSolverParameters()
Returns the default solver ParameterList for implicit Steppers.
void testRKAppAction(const Teuchos::RCP< Tempus::StepperRKBase< double >> &stepper, const Teuchos::RCP< const Thyra::ModelEvaluator< double >> &model, Teuchos::FancyOStream &out, bool &success)
Unit test utility for Stepper RK AppAction.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
TEUCHOS_UNIT_TEST(BackwardEuler, Default_Construction)
Default ModifierX for StepperRK.
Default modifier for StepperRK.
TypeTo as(const TypeFrom &t)
#define TEUCHOS_ASSERT(assertion_test)
#define TEUCHOS_TEST_FOR_EXCEPT(throw_exception_test)