Skip to content
Snippets Groups Projects
Commit 17182ac1 authored by Timo Koch's avatar Timo Koch
Browse files

[fvproblem] make applyInitialSolution a template

parent 23974f94
No related branches found
No related tags found
1 merge request!1977Feature/cleanup fvproblem dependencies
...@@ -72,8 +72,6 @@ class FVProblem ...@@ -72,8 +72,6 @@ class FVProblem
using ElementVolumeVariables = typename GridVariables::GridVolumeVariables::LocalView; using ElementVolumeVariables = typename GridVariables::GridVolumeVariables::LocalView;
using VolumeVariables = typename ElementVolumeVariables::VolumeVariables; using VolumeVariables = typename ElementVolumeVariables::VolumeVariables;
using SolutionVector = GetPropType<TypeTag, Properties::SolutionVector>;
static constexpr bool isBox = GridGeometry::discMethod == DiscretizationMethod::box; static constexpr bool isBox = GridGeometry::discMethod == DiscretizationMethod::box;
static constexpr bool isStaggered = GridGeometry::discMethod == DiscretizationMethod::staggered; static constexpr bool isStaggered = GridGeometry::discMethod == DiscretizationMethod::staggered;
...@@ -510,6 +508,7 @@ public: ...@@ -510,6 +508,7 @@ public:
* \brief Applies the initial solution for all degrees of freedom of the grid. * \brief Applies the initial solution for all degrees of freedom of the grid.
* \param sol the initial solution vector * \param sol the initial solution vector
*/ */
template<class SolutionVector>
void applyInitialSolution(SolutionVector& sol) const void applyInitialSolution(SolutionVector& sol) const
{ {
assembleInitialSolution(sol, asImp_()); assembleInitialSolution(sol, asImp_());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment