Commit ad395f0c authored by Timo Koch's avatar Timo Koch
Browse files

[bugfix] Fix compiler error introduced in !2236

parent f0aa91b6
......@@ -34,6 +34,14 @@
namespace Dumux {
namespace Impl {
template<class T>
static constexpr bool isRotationalExtrusion = false;
template<int radialAxis>
static constexpr bool isRotationalExtrusion<RotationalExtrusion<radialAxis>> = true;
} // end namespace Impl
// forward declaration
template<class TypeTag, DiscretizationMethod discMethod>
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<Extrusion, RotationalExtrusion<Extrusion::radialAxis>>)
if constexpr (ModelTraits::dim() == 2 && Impl::isRotationalExtrusion<Extrusion>)
{
if (scvf.directionIndex() == Extrusion::radialAxis)
{
......
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