From 541a51c350da421a3d52bd9cd19e8b08cc6a1e56 Mon Sep 17 00:00:00 2001 From: Kilian <kilian.weishaupt@iws.uni-stuttgart.de> Date: Fri, 5 Jun 2020 08:59:15 +0200 Subject: [PATCH] [test][geomechanics] Use BoundaryTypes directly --- test/geomechanics/elastic/problem.hh | 3 ++- test/geomechanics/poroelastic/problem.hh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/geomechanics/elastic/problem.hh b/test/geomechanics/elastic/problem.hh index 559c5f03f2..ebbca81c48 100644 --- a/test/geomechanics/elastic/problem.hh +++ b/test/geomechanics/elastic/problem.hh @@ -28,6 +28,7 @@ #include <dune/common/fmatrix.hh> #include <dune/grid/yaspgrid.hh> +#include <dumux/common/boundarytypes.hh> #include <dumux/discretization/box.hh> #include <dumux/geomechanics/elastic/model.hh> #include <dumux/geomechanics/fvproblem.hh> @@ -69,7 +70,7 @@ class ElasticProblem : public GeomechanicsFVProblem<TypeTag> using Scalar = GetPropType<TypeTag, Properties::Scalar>; using Indices = typename GetPropType<TypeTag, Properties::ModelTraits>::Indices; - using BoundaryTypes = GetPropType<TypeTag, Properties::BoundaryTypes>; + using BoundaryTypes = Dumux::BoundaryTypes<GetPropType<TypeTag, Properties::ModelTraits>::numEq()>; using PrimaryVariables = GetPropType<TypeTag, Properties::PrimaryVariables>; using NumEqVector = GetPropType<TypeTag, Properties::NumEqVector>; diff --git a/test/geomechanics/poroelastic/problem.hh b/test/geomechanics/poroelastic/problem.hh index 69ed2f3a92..1b9c376d06 100644 --- a/test/geomechanics/poroelastic/problem.hh +++ b/test/geomechanics/poroelastic/problem.hh @@ -28,6 +28,7 @@ #include <dune/common/fmatrix.hh> #include <dune/grid/yaspgrid.hh> +#include <dumux/common/boundarytypes.hh> #include <dumux/discretization/box.hh> #include <dumux/geomechanics/poroelastic/model.hh> #include <dumux/geomechanics/fvproblem.hh> @@ -80,7 +81,7 @@ class PoroElasticProblem : public GeomechanicsFVProblem<TypeTag> using Scalar = GetPropType<TypeTag, Properties::Scalar>; using Indices = typename GetPropType<TypeTag, Properties::ModelTraits>::Indices; - using BoundaryTypes = GetPropType<TypeTag, Properties::BoundaryTypes>; + using BoundaryTypes = Dumux::BoundaryTypes<GetPropType<TypeTag, Properties::ModelTraits>::numEq()>; using PrimaryVariables = GetPropType<TypeTag, Properties::PrimaryVariables>; using NumEqVector = GetPropType<TypeTag, Properties::NumEqVector>; using ElementVolumeVariables = typename GetPropType<TypeTag, Properties::GridVolumeVariables>::LocalView; -- GitLab