diff --git a/NumLib/Extrapolation/LocalLinearLeastSquaresExtrapolator.cpp b/NumLib/Extrapolation/LocalLinearLeastSquaresExtrapolator.cpp index c7527be13b24dc25e1d77c848d305b7937b0a870..d38941f2059edc17cd81c61df45c3016ffb0820c 100644 --- a/NumLib/Extrapolation/LocalLinearLeastSquaresExtrapolator.cpp +++ b/NumLib/Extrapolation/LocalLinearLeastSquaresExtrapolator.cpp @@ -163,7 +163,7 @@ void LocalLinearLeastSquaresExtrapolator::extrapolateElement( // number of integration points in the element const auto num_int_pts = num_values / num_components; - if (num_int_pts < static_cast<decltype(num_int_pts)>(num_nodes)) + if (num_int_pts < num_nodes) OGS_FATAL( "Least squares is not possible if there are more nodes than" "integration points.");