Commit 17182ac1 authored by Timo Koch's avatar Timo Koch
Browse files

[fvproblem] make applyInitialSolution a template

parent 23974f94
......@@ -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_());
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment