9 #ifndef Tempus_UnitTest_Utils_hpp
10 #define Tempus_UnitTest_Utils_hpp
13 #include "Tempus_config.hpp"
17 #include "Thyra_VectorStdOps.hpp"
18 #include "NOX_Thyra.H"
21 #include "Tempus_StepperFactory.hpp"
22 #include "Tempus_SolutionHistory.hpp"
23 #include "Tempus_IntegratorBasic.hpp"
25 #include "../TestModels/SinCosModel.hpp"
28 namespace Tempus_Unit_Test {
32 using Teuchos::rcp_const_cast;
33 using Teuchos::rcp_dynamic_cast;
49 auto stepper = sf->createStepper(stepperType, model);
52 stepper = sf->createStepper(stepperType);
53 stepper->setModel(model);
54 stepper->initialize();
59 auto stepperPL = rcp_const_cast<
ParameterList>(stepper->getValidParameters());
60 stepper = sf->createStepper(stepperPL, model);
63 stepper = sf->createStepper(stepperPL);
64 stepper->setModel(model);
65 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)