From ad395f0cac77ca402b7a8ba7f9ea1563c2c112bc Mon Sep 17 00:00:00 2001 From: Timo Koch Date: Mon, 7 Sep 2020 17:12:05 +0200 Subject: [PATCH] [bugfix] Fix compiler error introduced in !2236 --- dumux/freeflow/navierstokes/staggered/localresidual.hh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dumux/freeflow/navierstokes/staggered/localresidual.hh b/dumux/freeflow/navierstokes/staggered/localresidual.hh index 6baa841272..b797a4b64a 100644 --- a/dumux/freeflow/navierstokes/staggered/localresidual.hh +++ b/dumux/freeflow/navierstokes/staggered/localresidual.hh @@ -34,6 +34,14 @@ namespace Dumux { +namespace Impl { +template +static constexpr bool isRotationalExtrusion = false; + +template +static constexpr bool isRotationalExtrusion> = true; +} // end namespace Impl + // forward declaration template class NavierStokesResidualImpl; @@ -172,7 +180,7 @@ public: // Axisymmetric problems in 2D feature an extra source terms arising from the transformation to cylindrical coordinates. // See Ferziger/Peric: Computational methods for fluid dynamics chapter 8. // https://doi.org/10.1007/978-3-540-68228-8 (page 301) - if constexpr (ModelTraits::dim() == 2 && std::is_same_v>) + if constexpr (ModelTraits::dim() == 2 && Impl::isRotationalExtrusion) { if (scvf.directionIndex() == Extrusion::radialAxis) { -- GitLab