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: Time Integration and Sensitivity Analysis Package
4//
5// Copyright 2017 NTESS and the Tempus contributors.
6// SPDX-License-Identifier: BSD-3-Clause
7// *****************************************************************************
8//@HEADER
9
11
12namespace Tempus_Unit_Test {
13
14using Teuchos::ParameterList;
15using Teuchos::RCP;
16using Teuchos::rcp;
17using Teuchos::rcp_const_cast;
18using Teuchos::rcp_dynamic_cast;
19using Teuchos::sublist;
20
21// ************************************************************
22// ************************************************************
23TEUCHOS_UNIT_TEST(DIRK_2Stage2ndOrderLobattoIIIB, Default_Construction)
24{
25 auto stepper =
28
29 // Test stepper properties.
30 TEUCHOS_ASSERT(stepper->getOrder() == 2);
31}
32
33// ************************************************************
34// ************************************************************
35TEUCHOS_UNIT_TEST(DIRK_2Stage2ndOrderLobattoIIIB, StepperFactory_Construction)
36{
37 auto model = rcp(new Tempus_Test::SinCosModel<double>());
38 testFactoryConstruction("RK Implicit 2 Stage 2nd order Lobatto IIIB", model);
39}
40
41// ************************************************************
42// ************************************************************
43TEUCHOS_UNIT_TEST(DIRK_2Stage2ndOrderLobattoIIIB, AppAction)
44{
45 auto stepper =
47 auto model = rcp(new Tempus_Test::SinCosModel<double>());
48 testRKAppAction(stepper, model, out, success);
49}
50
51} // namespace Tempus_Unit_Test
Sine-Cosine model problem from Rythmos. This is a canonical Sine-Cosine differential equation.
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.