Tempus Version of the Day
Time Integration
Loading...
Searching...
No Matches
Tempus_ExplicitRK_Staggered_FSA.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
12#include "Teuchos_UnitTestRepository.hpp"
13#include "Teuchos_GlobalMPISession.hpp"
14#include "Teuchos_CommandLineProcessor.hpp"
15
16std::string method_name;
17
18namespace Tempus_Test {
19
20TEUCHOS_UNIT_TEST(ExplicitRK, SinCos_Staggered_FSA)
21{
22 test_sincos_fsa(method_name, false, false, out, success);
23}
24
25TEUCHOS_UNIT_TEST(ExplicitRK, SinCos_Staggered_FSA_Tangent)
26{
27 test_sincos_fsa(method_name, false, true, out, success);
28}
29
30} // namespace Tempus_Test
31
32int main(int argc, char* argv[])
33{
34 Teuchos::GlobalMPISession mpiSession(&argc, &argv);
35
36 // Add "--method" command line argument
37 Teuchos::CommandLineProcessor& CLP = Teuchos::UnitTestRepository::getCLP();
38 method_name = "";
39 CLP.setOption("method", &method_name, "Stepper method");
40
41 return Teuchos::UnitTestRepository::runUnitTestsFromMain(argc, argv);
42}
std::string method_name
int main(int argc, char *argv[])
std::string method_name
TEUCHOS_UNIT_TEST(BackwardEuler, SinCos_ASA)
void test_sincos_fsa(const bool use_combined_method, const bool use_dfdp_as_tangent, Teuchos::FancyOStream &out, bool &success)