Tempus
Version of the Day
Time Integration
Tempus_Types.hpp
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
#ifndef Tempus_Types_hpp
10
#define Tempus_Types_hpp
11
12
namespace
Tempus
{
13
14
15
/** \brief Status for the Integrator, the Stepper and the SolutionState */
16
enum
Status
{
17
PASSED
,
18
FAILED
,
19
WORKING
20
};
21
22
23
/** \brief Convert Status to string. */
24
inline
25
const
char
*
toString
(
const
Status
status)
26
{
27
switch
(status) {
28
case
PASSED
:
return
"PASSED"
;
29
case
FAILED
:
return
"FAILED"
;
30
case
WORKING
:
return
"WORKING"
;
31
default
: TEUCHOS_TEST_FOR_EXCEPT(
"Invalid Status!"
);
32
}
33
return
""
;
// Should not get here.
34
}
35
36
37
}
// namespace Tempus
38
#endif // Tempus_Types_hpp
Tempus::WORKING
Definition:
Tempus_Types.hpp:19
Tempus
Definition:
Tempus_AdjointAuxSensitivityModelEvaluator_decl.hpp:20
Tempus::PASSED
Definition:
Tempus_Types.hpp:17
Tempus::FAILED
Definition:
Tempus_Types.hpp:18
Tempus::toString
const char * toString(const Status status)
Convert Status to string.
Definition:
Tempus_Types.hpp:25
Tempus::Status
Status
Status for the Integrator, the Stepper and the SolutionState.
Definition:
Tempus_Types.hpp:16
src
Tempus_Types.hpp
Generated by
1.8.16