Skip to content
Snippets Groups Projects
Commit d5fb51c3 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[NL] Extrap; Remove unnecessary decltype.

The original code issues a warning: type qualifiers ignored on cast result type
since gcc-8.1. The cast is unnecessary because both
operands of the comparison are unsined ints.
parent f7bc43b6
No related branches found
No related tags found
No related merge requests found
......@@ -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.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment