9#ifndef Tempus_UnitTest_Utils_hpp
10#define Tempus_UnitTest_Utils_hpp
13#include "Tempus_config.hpp"
15#include "Teuchos_UnitTestHarness.hpp"
17#include "Thyra_VectorStdOps.hpp"
21#include "Tempus_StepperFactory.hpp"
22#include "Tempus_SolutionHistory.hpp"
23#include "Tempus_IntegratorBasic.hpp"
25#include "../TestModels/SinCosModel.hpp"
32using Teuchos::rcp_const_cast;
33using Teuchos::rcp_dynamic_cast;
34using Teuchos::ParameterList;
49 auto stepper = sf->createStepper(stepperType, model);
50 TEUCHOS_TEST_FOR_EXCEPT(!stepper->isInitialized());
52 stepper = sf->createStepper(stepperType);
53 stepper->setModel(model);
54 stepper->initialize();
55 TEUCHOS_TEST_FOR_EXCEPT(!stepper->isInitialized());
59 auto stepperPL = rcp_const_cast<ParameterList>(stepper->getValidParameters());
60 stepper = sf->createStepper(stepperPL, model);
61 TEUCHOS_TEST_FOR_EXCEPT(!stepper->isInitialized());
63 stepper = sf->createStepper(stepperPL);
64 stepper->setModel(model);
65 stepper->initialize();
66 TEUCHOS_TEST_FOR_EXCEPT(!stepper->isInitialized());
void testFactoryConstruction(std::string stepperType, const Teuchos::RCP< const Thyra::ModelEvaluator< double > > &model)
Unit test utility for Stepper construction through StepperFactory.