Tempus Version of the Day
Time Integration
Loading...
Searching...
No Matches
Tempus_UnitTest_DIRK_2Stage2ndOrderLobattoIIIB.cpp
Go to the documentation of this file.
1// @HEADER
2// ****************************************************************************
3// Tempus: Copyright (2017) Sandia Corporation
4//
5// Distributed under BSD 3-clause license (See accompanying file Copyright.txt)
6// ****************************************************************************
7// @HEADER
8
9
11
12
13namespace Tempus_Unit_Test {
14
15using Teuchos::RCP;
16using Teuchos::rcp;
17using Teuchos::rcp_const_cast;
18using Teuchos::rcp_dynamic_cast;
19using Teuchos::ParameterList;
20using Teuchos::sublist;
21
22
23// ************************************************************
24// ************************************************************
25TEUCHOS_UNIT_TEST(DIRK_2Stage2ndOrderLobattoIIIB, Default_Construction)
26{
29
30 // Test stepper properties.
31 TEUCHOS_ASSERT(stepper->getOrder() == 2);
32}
33
34
35// ************************************************************
36// ************************************************************
37TEUCHOS_UNIT_TEST(DIRK_2Stage2ndOrderLobattoIIIB, StepperFactory_Construction)
38{
39 auto model = rcp(new Tempus_Test::SinCosModel<double>());
40 testFactoryConstruction("RK Implicit 2 Stage 2nd order Lobatto IIIB", model);
41}
42
43
44// ************************************************************
45// ************************************************************
46TEUCHOS_UNIT_TEST(DIRK_2Stage2ndOrderLobattoIIIB, AppAction)
47{
49 auto model = rcp(new Tempus_Test::SinCosModel<double>());
50 testRKAppAction(stepper, model, out, success);
51}
52
53
54} // namespace Tempus_Test
void testDIRKAccessorsFullConstruction(const RCP< Tempus::StepperDIRK< double > > &stepper)
Unit test utility for ExplicitRK Stepper construction and accessors.
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_UNIT_TEST(BackwardEuler, Default_Construction)
void testFactoryConstruction(std::string stepperType, const Teuchos::RCP< const Thyra::ModelEvaluator< double > > &model)
Unit test utility for Stepper construction through StepperFactory.