From 63a7b214a33d8039e57258d5540f2f984989cf34 Mon Sep 17 00:00:00 2001
From: IvBu <st116086@stud.uni-stuttgart.de>
Date: Wed, 29 Jun 2022 16:26:32 +0200
Subject: [PATCH] Remove deprecated call to extrusionFactor and temperature.

---
 dumux/geomechanics/elastic/volumevariables.hh     | 5 ++---
 dumux/geomechanics/poroelastic/volumevariables.hh | 5 ++---
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/dumux/geomechanics/elastic/volumevariables.hh b/dumux/geomechanics/elastic/volumevariables.hh
index 74b0e72312..666c8126bd 100644
--- a/dumux/geomechanics/elastic/volumevariables.hh
+++ b/dumux/geomechanics/elastic/volumevariables.hh
@@ -28,7 +28,6 @@
 
 #include <dune/common/exceptions.hh>
 
-#include <dumux/common/deprecated.hh>
 #include <dumux/material/solidstates/updatesolidvolumefractions.hh>
 
 namespace Dumux {
@@ -76,7 +75,7 @@ public:
                 const Scv& scv)
     {
         priVars_ = elemSol[scv.localDofIndex()];
-        extrusionFactor_ = Deprecated::extrusionFactor(problem, element, scv, elemSol);
+        extrusionFactor_ = problem.spatialParams().extrusionFactor(element, scv, elemSol);
 
         //! set the volume fractions of the solid components
         updateSolidVolumeFractions(elemSol, problem, element, scv, solidState_, /*numFluidComps=*/0);
@@ -127,7 +126,7 @@ private:
     template< class Problem, class Element, class Scv, class ElemSol,
               bool enableEB = enableEnergyBalance, typename std::enable_if_t<!enableEB, bool> = 0 >
     void setSolidTemperature_(const Problem& problem, const Element& element, const Scv& scv, const ElemSol& elemSol)
-    { solidState_.setTemperature(Deprecated::temperature(problem, element, scv, elemSol)); }
+    { solidState_.setTemperature(problem.spatialParams().temperature(element, scv, elemSol)); }
 
     // data members
     Scalar extrusionFactor_;
diff --git a/dumux/geomechanics/poroelastic/volumevariables.hh b/dumux/geomechanics/poroelastic/volumevariables.hh
index 009b32a10c..a2e4053d21 100644
--- a/dumux/geomechanics/poroelastic/volumevariables.hh
+++ b/dumux/geomechanics/poroelastic/volumevariables.hh
@@ -24,7 +24,6 @@
 #ifndef DUMUX_POROELASTIC_VOLUME_VARIABLES_HH
 #define DUMUX_POROELASTIC_VOLUME_VARIABLES_HH
 
-#include <dumux/common/deprecated.hh>
 #include <dumux/discretization/evalgradients.hh>
 
 namespace Dumux {
@@ -70,7 +69,7 @@ public:
                 const Scv& scv)
     {
         priVars_ = elemSol[scv.localDofIndex()];
-        extrusionFactor_ = Deprecated::extrusionFactor(problem, element, scv, elemSol);
+        extrusionFactor_ = problem.spatialParams().extrusionFactor(element, scv, elemSol);
 
         //! set the volume fractions of the solid components
         updateSolidVolumeFractions_(elemSol, problem, element, scv);
@@ -151,7 +150,7 @@ private:
     template< class Problem, class Element, class Scv, class ElemSol,
               bool enableEB = enableEnergyBalance, typename std::enable_if_t<!enableEB, bool> = 0 >
     void setSolidTemperature_(const Problem& problem, const Element& element, const Scv& scv, const ElemSol& elemSol)
-    { solidState_.setTemperature(Deprecated::temperature(problem, element, scv, elemSol)); }
+    { solidState_.setTemperature(problem.spatialParams().temperature(element, scv, elemSol)); }
 
     // data members
     Scalar extrusionFactor_;
-- 
GitLab