Skip to content
Snippets Groups Projects
Commit 1382ea0c authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[MPL] Variable enum to string conversion.

parent e11efddd
No related branches found
No related tags found
No related merge requests found
......@@ -69,6 +69,32 @@ enum class Variable : int
number_of_variables
};
static const std::array<std::string,
static_cast<int>(Variable::number_of_variables)>
variable_enum_to_string{{"capillary_pressure",
"concentration",
"density",
"displacement",
"effective_pore_pressure",
"enthalpy_of_evaporation",
"equivalent_plastic_strain",
"grain_compressibility",
"liquid_phase_pressure",
"liquid_saturation",
"mechanical_strain",
"molar_mass",
"molar_fraction",
"phase_pressure",
"porosity",
"solid_grain_pressure",
"stress",
"temperature",
"total_strain",
"total_stress",
"transport_porosity",
"vapour_pressure",
"volumetric_strain"}};
/// Data type for primary variables, designed to contain both scalar and vector
/// data.
using VariableType =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment