From 86f4ff467c22e7a55659ad17e829f03f289ab5da Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Fri, 15 Mar 2019 09:07:50 +0100
Subject: [PATCH] [PL/HT] Use MPL thermal dispersivities.

---
 ProcessLib/HT/HTFEM.h | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/ProcessLib/HT/HTFEM.h b/ProcessLib/HT/HTFEM.h
index dda388621f7..e5c469cdb08 100644
--- a/ProcessLib/HT/HTFEM.h
+++ b/ProcessLib/HT/HTFEM.h
@@ -208,10 +208,16 @@ protected:
             return thermal_conductivity * I;
         }
 
-        double const thermal_dispersivity_longitudinal =
-            _material_properties.thermal_dispersivity_longitudinal(t, pos)[0];
+        auto const thermal_dispersivity_longitudinal =
+            medium
+                .property(MaterialPropertyLib::PropertyType::
+                              thermal_longitudinal_dispersivity)
+                .template value<double>();
         auto const thermal_dispersivity_transversal =
-            _material_properties.thermal_dispersivity_transversal(t, pos)[0];
+            medium
+                .property(MaterialPropertyLib::PropertyType::
+                              thermal_transversal_dispersivity)
+                .template value<double>();
 
         double const velocity_magnitude = velocity.norm();
 
-- 
GitLab