13 #include "Tempus_IntegratorBasic.hpp"
15 #include "../TestModels/SinCosModel.hpp"
19 namespace Tempus_Test {
23 using Teuchos::sublist;
24 using Teuchos::getParametersFromXmlFile;
42 Tempus::createIntegratorBasic<double>(tempusPL, model);
45 auto testPL = integrator->getValidParameters();
51 getParametersFromXmlFile(
"Tempus_IntegratorBasic_ref.xml");
53 bool pass = haveSameValuesSorted(*testPL, *referencePL,
true);
55 std::cout << std::endl;
56 std::cout <<
"testPL -------------- \n" << *testPL << std::endl;
57 std::cout <<
"referencePL -------------- \n" << *referencePL << std::endl;
69 Tempus::createIntegratorBasic<double>();
75 integrator->getValidParameters());
77 tempusPL->
sublist(
"Default Integrator").
set(
"Stepper Name",
"Demo Stepper");
79 stepperPL->
set(
"Stepper Type",
"Forward Euler");
80 tempusPL->
set(
"Demo Stepper", *stepperPL);
84 integrator = Tempus::createIntegratorBasic<double>(tempusPL, model);
85 integrator->initialize();
88 auto testPL = integrator->getValidParameters();
94 getParametersFromXmlFile(
"Tempus_IntegratorBasic_ref2.xml");
96 bool pass = haveSameValuesSorted(*testPL, *referencePL,
true);
98 std::cout << std::endl;
99 std::cout <<
"testPL -------------- \n" << *testPL << std::endl;
100 std::cout <<
"referencePL -------------- \n" << *referencePL << std::endl;
ParameterList & set(std::string const &name, T const &value, std::string const &docString="", RCP< const ParameterEntryValidator > const &validator=null)
Sine-Cosine model problem from Rythmos. This is a canonical Sine-Cosine differential equation with a...
TEUCHOS_UNIT_TEST(BackwardEuler, SinCos_ASA)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
SolutionHistory is basically a container of SolutionStates. SolutionHistory maintains a collection of...
ParameterList & sublist(const std::string &name, bool mustAlreadyExist=false, const std::string &docString="")
Solution state for integrators and steppers. SolutionState contains the metadata for solutions and th...