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

[NL] Avoid warning for type mismatch in comparison

parent 2adc1567
No related branches found
No related tags found
No related merge requests found
...@@ -77,7 +77,8 @@ void shapeFunctionInterpolate( ...@@ -77,7 +77,8 @@ void shapeFunctionInterpolate(
auto const num_nodal_dof = sizeof...(interpolated_values) + 1; auto const num_nodal_dof = sizeof...(interpolated_values) + 1;
auto const num_nodes = shape_matrix_N.size(); auto const num_nodes = shape_matrix_N.size();
assert(num_nodes*num_nodal_dof == nodal_values.size()); assert(num_nodes * num_nodal_dof ==
static_cast<std::size_t>(nodal_values.size()));
(void) num_nodal_dof; (void) num_nodes; // no warnings when not in debug build (void) num_nodal_dof; (void) num_nodes; // no warnings when not in debug build
detail::shapeFunctionInterpolate<0>(nodal_values, shape_matrix_N, interpolated_value, detail::shapeFunctionInterpolate<0>(nodal_values, shape_matrix_N, interpolated_value,
......
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