From 17182ac16e25d07169eabeaabae66dfe73a2f39f Mon Sep 17 00:00:00 2001
From: Timo Koch <timo.koch@iws.uni-stuttgart.de>
Date: Tue, 14 Apr 2020 16:25:08 +0200
Subject: [PATCH] [fvproblem] make applyInitialSolution a template

---
 dumux/common/fvproblem.hh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dumux/common/fvproblem.hh b/dumux/common/fvproblem.hh
index 49dea16866..6573ecb818 100644
--- a/dumux/common/fvproblem.hh
+++ b/dumux/common/fvproblem.hh
@@ -72,8 +72,6 @@ class FVProblem
     using ElementVolumeVariables = typename GridVariables::GridVolumeVariables::LocalView;
     using VolumeVariables = typename ElementVolumeVariables::VolumeVariables;
 
-    using SolutionVector = GetPropType<TypeTag, Properties::SolutionVector>;
-
     static constexpr bool isBox = GridGeometry::discMethod == DiscretizationMethod::box;
     static constexpr bool isStaggered = GridGeometry::discMethod == DiscretizationMethod::staggered;
 
@@ -510,6 +508,7 @@ public:
      * \brief Applies the initial solution for all degrees of freedom of the grid.
      * \param sol the initial solution vector
      */
+    template<class SolutionVector>
     void applyInitialSolution(SolutionVector& sol) const
     {
         assembleInitialSolution(sol, asImp_());
-- 
GitLab