10 #ifndef Tempus_UnitTest_Utils_hpp
11 #define Tempus_UnitTest_Utils_hpp
13 #include "Tempus_config.hpp"
18 #include "Thyra_VectorStdOps.hpp"
19 #include "NOX_Thyra.H"
22 #include "Tempus_StepperFactory.hpp"
23 #include "Tempus_SolutionHistory.hpp"
24 #include "Tempus_IntegratorBasic.hpp"
26 #include "../TestModels/SinCosModel.hpp"
28 namespace Tempus_Unit_Test {
33 using Teuchos::rcp_const_cast;
34 using Teuchos::rcp_dynamic_cast;
43 std::string stepperType,
50 auto stepper = sf->createStepper(stepperType, model);
53 stepper = sf->createStepper(stepperType);
54 stepper->setModel(model);
55 stepper->initialize();
60 auto stepperPL = rcp_const_cast<
ParameterList>(stepper->getValidParameters());
61 stepper = sf->createStepper(stepperPL, model);
64 stepper = sf->createStepper(stepperPL);
65 stepper->setModel(model);
66 stepper->initialize();
71 #endif // Tempus_UnitTest_Utils_hpp
void testFactoryConstruction(std::string stepperType, const Teuchos::RCP< const Thyra::ModelEvaluator< double > > &model)
Unit test utility for Stepper construction through StepperFactory.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
#define TEUCHOS_TEST_FOR_EXCEPT(throw_exception_test)