From 76f0cbaf5d9cdaaaaf95d40a70be3e1dc298eb9b Mon Sep 17 00:00:00 2001 From: renchao_lu <renchao.lu@gmail.com> Date: Tue, 3 Sep 2019 14:31:25 +0200 Subject: [PATCH] [MatLib/MPL] Add Conc. in the list of variables. --- MaterialLib/MPL/VariableType.cpp | 4 ++++ MaterialLib/MPL/VariableType.h | 1 + 2 files changed, 5 insertions(+) diff --git a/MaterialLib/MPL/VariableType.cpp b/MaterialLib/MPL/VariableType.cpp index 37086e0b74f..fee2bcf3764 100644 --- a/MaterialLib/MPL/VariableType.cpp +++ b/MaterialLib/MPL/VariableType.cpp @@ -17,6 +17,10 @@ namespace MaterialPropertyLib { Variable convertStringToVariable(std::string const& input) { + if (boost::iequals(input, "concentration")) + { + return Variable::concentration; + } if (boost::iequals(input, "phase_pressure")) { return Variable::phase_pressure; diff --git a/MaterialLib/MPL/VariableType.h b/MaterialLib/MPL/VariableType.h index e913af37700..e11d51ba533 100644 --- a/MaterialLib/MPL/VariableType.h +++ b/MaterialLib/MPL/VariableType.h @@ -42,6 +42,7 @@ using Tensor = std::array<double, 9>; /// is missing, simply add it somewhere at the list, but above the last entry. enum class Variable : int { + concentration, phase_pressure, capillary_pressure, density, -- GitLab