From b1e5e487e4a48007615210041408c89fdd3a1fff Mon Sep 17 00:00:00 2001
From: Norbert Grunwald <Norbert.Grunwald@ufz.de>
Date: Wed, 22 Jan 2020 14:10:13 +0100
Subject: [PATCH] changed std vectors to std arrays

---
 ProcessLib/HT/HTProcess.cpp | 28 +++++++++++++---------------
 1 file changed, 13 insertions(+), 15 deletions(-)

diff --git a/ProcessLib/HT/HTProcess.cpp b/ProcessLib/HT/HTProcess.cpp
index 25b32dd2719..9eb373accd4 100644
--- a/ProcessLib/HT/HTProcess.cpp
+++ b/ProcessLib/HT/HTProcess.cpp
@@ -291,21 +291,19 @@ void checkMPLProperties(MeshLib::Mesh const& mesh,
 {
     DBUG("Check the media properties of HT process ...");
 
-    std::vector<MaterialPropertyLib::PropertyType> const requiredPropertyMedium =
-        {MaterialPropertyLib::PropertyType::porosity,
-         MaterialPropertyLib::PropertyType::permeability};
-
-    std::vector<MaterialPropertyLib::PropertyType> const
-        requiredPropertyLiquidPhase = {
-            MaterialPropertyLib::PropertyType::viscosity,
-            MaterialPropertyLib::PropertyType::density,
-            MaterialPropertyLib::PropertyType::specific_heat_capacity};
-
-    std::vector<MaterialPropertyLib::PropertyType> const
-        requiredPropertySolidPhase = {
-            MaterialPropertyLib::PropertyType::specific_heat_capacity,
-            MaterialPropertyLib::PropertyType::density,
-            MaterialPropertyLib::PropertyType::storage};
+    std::array const requiredPropertyMedium = {
+        MaterialPropertyLib::PropertyType::porosity,
+        MaterialPropertyLib::PropertyType::permeability};
+
+    std::array const requiredPropertyLiquidPhase = {
+        MaterialPropertyLib::PropertyType::viscosity,
+        MaterialPropertyLib::PropertyType::density,
+        MaterialPropertyLib::PropertyType::specific_heat_capacity};
+
+    std::array const requiredPropertySolidPhase = {
+        MaterialPropertyLib::PropertyType::specific_heat_capacity,
+        MaterialPropertyLib::PropertyType::density,
+        MaterialPropertyLib::PropertyType::storage};
 
     for (auto const& element : mesh.getElements())
     {
-- 
GitLab