24#ifndef DUMUX_DISCRETIZATION_METHOD_HH
25#define DUMUX_DISCRETIZATION_METHOD_HH
43 none, box, cctpfa, ccmpfa, staggered, fem, fcstaggered
47namespace DiscretizationMethods {
50 static std::string
name() {
return "cctpfa"; }
53 [[deprecated(
"Conversion to enum is deprecated. Will be removed after 3.5. Use tags.")]]
62 static std::string
name() {
return "ccmpfa"; }
65 [[deprecated(
"Conversion to enum is deprecated. Will be removed after 3.5. Use tags.")]]
74 static std::string
name() {
return "box"; }
77 [[deprecated(
"Conversion to enum is deprecated. Will be removed after 3.5. Use tags.")]]
87 static std::string
name() {
return "staggered"; }
90 [[deprecated(
"Conversion to enum is deprecated. Will be removed after 3.5. Use tags.")]]
100 static std::string
name() {
return "fem"; }
103 [[deprecated(
"Conversion to enum is deprecated. Will be removed after 3.5. Use tags.")]]
113 static std::string
name() {
return "fcstaggered"; }
116 [[deprecated(
"Conversion to enum is deprecated. Will be removed after 3.5. Use tags.")]]
126 static std::string
name() {
return "none"; }
129 [[deprecated(
"Conversion to enum is deprecated. Will be removed after 3.5. Use tags.")]]
151[[deprecated(
"Use discretization tags and their name attribute. Will be removed after 3.5")]]
162 default:
return "none";
170[[deprecated(
"Use discretization tags which also support operator <<. Will be removed after 3.5")]]
183 default:
return "none";
186 stream << toStringImpl(m);
return stream;
Helper class to create (named and comparable) tagged types.
std::ostream & operator<<(std::ostream &stream, DiscretizationMethod m)
Write discretization method to stream.
Definition: method.hh:171
std::string toString(DiscretizationMethod m)
Convert discretization method to string.
Definition: method.hh:152
DiscretizationMethod
The available discretization methods in Dumux.
Definition: method.hh:42
constexpr CCMpfa ccmpfa
Definition: method.hh:138
constexpr CCTpfa cctpfa
Definition: method.hh:137
constexpr Box box
Definition: method.hh:139
constexpr Staggered staggered
Definition: method.hh:140
constexpr None none
Definition: method.hh:143
constexpr FEM fem
Definition: method.hh:141
constexpr FCStaggered fcstaggered
Definition: method.hh:142
Helper class to create (named and comparable) tagged types Tags any given type. The tagged type is eq...
Definition: tag.hh:42
static std::string name()
Definition: method.hh:50
static std::string name()
Definition: method.hh:62
static std::string name()
Definition: method.hh:74
static std::string name()
Definition: method.hh:87
static std::string name()
Definition: method.hh:100
Definition: method.hh:112
static std::string name()
Definition: method.hh:113
Definition: method.hh:125
static std::string name()
Definition: method.hh:126