From 25de3305cdb0b3478e3aafeba09ee4e2441cb38f Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Fri, 15 Mar 2019 07:42:52 +0100
Subject: [PATCH] [PL/HT] Use MPL storage instead of PorousMedium/Storage.

[PL/HT] Use MPL storage in staggered HT.
---
 ProcessLib/HT/MonolithicHTFEM.h     | 4 ++--
 ProcessLib/HT/StaggeredHTFEM-impl.h | 5 ++---
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/ProcessLib/HT/MonolithicHTFEM.h b/ProcessLib/HT/MonolithicHTFEM.h
index 613797b4dfe..3b6c268c23d 100644
--- a/ProcessLib/HT/MonolithicHTFEM.h
+++ b/ProcessLib/HT/MonolithicHTFEM.h
@@ -120,8 +120,8 @@ public:
             // \todo the argument to getValue() has to be changed for non
             // constant storage model
             auto const specific_storage =
-                process_data.porous_media_properties.getSpecificStorage(t, pos)
-                    .getValue(0.0);
+                solid_phase.property(MaterialPropertyLib::PropertyType::storage)
+                    .template value<double>(vars);
 
             auto const& ip_data = this->_ip_data[ip];
             auto const& N = ip_data.N;
diff --git a/ProcessLib/HT/StaggeredHTFEM-impl.h b/ProcessLib/HT/StaggeredHTFEM-impl.h
index 2d81e71ddc9..63c3024ae54 100644
--- a/ProcessLib/HT/StaggeredHTFEM-impl.h
+++ b/ProcessLib/HT/StaggeredHTFEM-impl.h
@@ -123,9 +123,8 @@ void StaggeredHTFEM<ShapeFunction, IntegrationMethod, GlobalDim>::
         // \todo the argument to getValue() has to be changed for non
         // constant storage model
         auto const specific_storage =
-            material_properties.porous_media_properties
-                .getSpecificStorage(t, pos)
-                .getValue(0.0);
+            solid_phase.property(MaterialPropertyLib::PropertyType::storage)
+                .template value<double>(vars);
 
         auto const intrinsic_permeability = intrinsicPermeability<GlobalDim>(
             solid_phase
-- 
GitLab