From 01d16a8277f532c24a0828db764733007327d3b8 Mon Sep 17 00:00:00 2001 From: Kilian <kilian.weishaupt@iws.uni-stuttgart.de> Date: Thu, 4 Jun 2020 20:02:29 +0200 Subject: [PATCH] [test][porousmediumflow][2pncmin] Use BoundaryTypes directly --- test/porousmediumflow/2pncmin/implicit/isothermal/problem.hh | 4 +++- .../2pncmin/implicit/nonisothermal/problem.hh | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/test/porousmediumflow/2pncmin/implicit/isothermal/problem.hh b/test/porousmediumflow/2pncmin/implicit/isothermal/problem.hh index 8e0121fc33..7f5a508640 100644 --- a/test/porousmediumflow/2pncmin/implicit/isothermal/problem.hh +++ b/test/porousmediumflow/2pncmin/implicit/isothermal/problem.hh @@ -26,6 +26,8 @@ #include <dune/grid/yaspgrid.hh> +#include <dumux/common/boundarytypes.hh> + #include <dumux/discretization/elementsolution.hh> #include <dumux/discretization/method.hh> #include <dumux/discretization/cctpfa.hh> @@ -175,7 +177,7 @@ class DissolutionProblem : public PorousMediumFlowProblem<TypeTag> using PrimaryVariables = GetPropType<TypeTag, Properties::PrimaryVariables>; using NumEqVector = GetPropType<TypeTag, Properties::NumEqVector>; - using BoundaryTypes = GetPropType<TypeTag, Properties::BoundaryTypes>; + using BoundaryTypes = Dumux::BoundaryTypes<GetPropType<TypeTag, Properties::ModelTraits>::numEq()>; using ElementVolumeVariables = typename GetPropType<TypeTag, Properties::GridVolumeVariables>::LocalView; using Element = typename GridView::template Codim<0>::Entity; using GridGeometry = GetPropType<TypeTag, Properties::GridGeometry>; diff --git a/test/porousmediumflow/2pncmin/implicit/nonisothermal/problem.hh b/test/porousmediumflow/2pncmin/implicit/nonisothermal/problem.hh index 1b0ae1f146..ecb694b7a6 100644 --- a/test/porousmediumflow/2pncmin/implicit/nonisothermal/problem.hh +++ b/test/porousmediumflow/2pncmin/implicit/nonisothermal/problem.hh @@ -26,7 +26,9 @@ #include <dune/grid/yaspgrid.hh> +#include <dumux/common/boundarytypes.hh> #include <dumux/common/properties.hh> + #include <dumux/discretization/elementsolution.hh> #include <dumux/discretization/method.hh> #include <dumux/discretization/cctpfa.hh> @@ -183,7 +185,7 @@ class SalinizationProblem : public PorousMediumFlowProblem<TypeTag> using PrimaryVariables = GetPropType<TypeTag, Properties::PrimaryVariables>; using NumEqVector = GetPropType<TypeTag, Properties::NumEqVector>; - using BoundaryTypes = GetPropType<TypeTag, Properties::BoundaryTypes>; + using BoundaryTypes = Dumux::BoundaryTypes<GetPropType<TypeTag, Properties::ModelTraits>::numEq()>; using GridVariables = GetPropType<TypeTag, Properties::GridVariables>; using ElementFluxVariablesCache = typename GridVariables::GridFluxVariablesCache::LocalView; using ElementVolumeVariables = typename GetPropType<TypeTag, Properties::GridVolumeVariables>::LocalView; -- GitLab