From: David Wells Date: Wed, 1 May 2024 19:46:47 +0000 (-0400) Subject: Fix a compiler warning. X-Git-Tag: v9.6.0-rc1~329^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4b174ae9c896719b6ab2fd5ff61698723098ef8;p=dealii.git Fix a compiler warning. --- diff --git a/source/fe/fe_simplex_p.cc b/source/fe/fe_simplex_p.cc index 3586bb8ee4..b52a6a1e4a 100644 --- a/source/fe/fe_simplex_p.cc +++ b/source/fe/fe_simplex_p.cc @@ -495,10 +495,6 @@ FE_SimplexPoly::get_restriction_matrix( const auto &child_cell = tria.begin(0)->child(child); - const auto &mapping = - this->reference_cell() - .template get_default_linear_mapping(); - // iterate over all support points and transfom them to the unit cell of // the child for (unsigned int i = 0; i < unit_support_points.size(); i++) @@ -510,10 +506,12 @@ FE_SimplexPoly::get_restriction_matrix( Point(unit_support_points[i][0], unit_support_points[i][1], unit_support_points[i][2])}; - mapping.transform_points_real_to_unit_cell( - child_cell, - make_array_view(unit_support_point), - make_array_view(transformed_point)); + this->reference_cell() + .template get_default_linear_mapping() + .transform_points_real_to_unit_cell( + child_cell, + make_array_view(unit_support_point), + make_array_view(transformed_point)); // if point is inside the unit cell iterate over all shape functions if (this->reference_cell().contains_point(transformed_point[0], eps))