From 4fade8a085c237e8809e75a39f61bc6e9405b143 Mon Sep 17 00:00:00 2001
From: Norbert Grunwald <Norbert.Grunwald@ufz.de>
Date: Mon, 26 Apr 2021 12:59:51 +0200
Subject: [PATCH] [MPL] Add concentration property type.

---
 MaterialLib/MPL/PropertyType.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/MaterialLib/MPL/PropertyType.h b/MaterialLib/MPL/PropertyType.h
index d577cd95b2f..01dbc75da13 100644
--- a/MaterialLib/MPL/PropertyType.h
+++ b/MaterialLib/MPL/PropertyType.h
@@ -46,6 +46,7 @@ enum PropertyType : int
     critical_temperature,
     compressibility,
     /// used to specify decay rate of a substance.
+    concentration,
     decay_rate,
     density,
     diffusion,
@@ -154,6 +155,10 @@ inline PropertyType convertStringToProperty(std::string const& inString)
     {
         return PropertyType::compressibility;
     }
+    if (boost::iequals(inString, "concentration"))
+    {
+        return PropertyType::concentration;
+    }
     if (boost::iequals(inString, "decay_rate"))
     {
         return PropertyType::decay_rate;
@@ -363,6 +368,7 @@ static const std::array<std::string, PropertyType::number_of_properties>
                              "critical_pressure",
                              "critical_temperature",
                              "compressibility",
+                             "concentration",
                              "decay_rate",
                              "density",
                              "diffusion",
-- 
GitLab