Chi-Tech
chi_math_time_stepping.cc
Go to the documentation of this file.
2
3#include <stdexcept>
4
5namespace chi_math
6{
7
8#pragma GCC diagnostic push
9#pragma GCC diagnostic error "-Wswitch-enum"
10/**Returns the string name of a time stepping method.*/
12{
13 switch (method)
14 {
15 case SteppingMethod::NONE: return "none";
16 case SteppingMethod::EXPLICIT_EULER: return "explicit_euler";
17 case SteppingMethod::IMPLICIT_EULER: return "implicit_euler";
18 case SteppingMethod::CRANK_NICOLSON: return "crank_nicholson";
19 case SteppingMethod::THETA_SCHEME: return "theta_scheme";
20 default:
21 throw std::logic_error(__PRETTY_FUNCTION__);
22 }
23}
24#pragma GCC diagnostic pop
25
26}
std::string SteppingMethodStringName(SteppingMethod method)