From bae019974252f0314bca52c40963bb1548808ea3 Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Wed, 31 Jul 2019 13:51:42 +0200
Subject: [PATCH] [Material] Remove member of Permeability class.

---
 .../PorousMedium/Permeability/Permeability.h       | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)

diff --git a/MaterialLib/PorousMedium/Permeability/Permeability.h b/MaterialLib/PorousMedium/Permeability/Permeability.h
index c34a1780aa9..679a9c5f743 100644
--- a/MaterialLib/PorousMedium/Permeability/Permeability.h
+++ b/MaterialLib/PorousMedium/Permeability/Permeability.h
@@ -37,8 +37,6 @@ public:
                 "tensor is defined for a %d dimensional problem.",
                 permeability_parameter.getNumberOfComponents(), _dimension);
         }
-        _intrinsic_permeability_tensor =
-            Eigen::MatrixXd(_dimension, _dimension);
     }
 
     ~Permeability() = default;
@@ -58,20 +56,14 @@ public:
         (void)variable;
         (void)temperature;
 
-        _intrinsic_permeability_tensor =
-            Eigen::Map<Eigen::Matrix<double,
-                                     Eigen::Dynamic,
-                                     Eigen::Dynamic,
-                                     Eigen::RowMajor> const>(
-                _permeability_parameter(t, pos).data(), _dimension, _dimension);
-
-        return _intrinsic_permeability_tensor;
+        return Eigen::Map<Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic,
+                                        Eigen::RowMajor> const>(
+            _permeability_parameter(t, pos).data(), _dimension, _dimension);
     }
 
 private:
     ParameterLib::Parameter<double> const& _permeability_parameter;
     int const _dimension;
-    mutable Eigen::MatrixXd _intrinsic_permeability_tensor;
 };
 
 }  // namespace PorousMedium
-- 
GitLab