Tempus  Version of the Day
Time Integration
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Tempus_ExplicitRK_Combined_FSA.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 
10 
11 #include "Teuchos_UnitTestRepository.hpp"
12 #include "Teuchos_GlobalMPISession.hpp"
13 #include "Teuchos_CommandLineProcessor.hpp"
14 
15 std::string method_name;
16 
17 namespace Tempus_Test {
18 
19 TEUCHOS_UNIT_TEST(ExplicitRK, SinCos_Combined_FSA)
20 {
21  test_sincos_fsa(method_name, true, false, out, success);
22 }
23 
24 TEUCHOS_UNIT_TEST(ExplicitRK, SinCos_Combined_FSA_Tangent)
25 {
26  test_sincos_fsa(method_name, true, true, out, success);
27 }
28 
29 } // namespace Tempus_Test
30 
31 int main( int argc, char* argv[] )
32 {
33  Teuchos::GlobalMPISession mpiSession(&argc, &argv);
34 
35  // Add "--method" command line argument
36  Teuchos::CommandLineProcessor& CLP = Teuchos::UnitTestRepository::getCLP();
37  method_name = "";
38  CLP.setOption("method", &method_name, "Stepper method");
39 
40  return Teuchos::UnitTestRepository::runUnitTestsFromMain(argc, argv);
41 }
int main(int argc, char *argv[])
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)
std::string method_name