From c4b174ae9c896719b6ab2fd5ff61698723098ef8 Mon Sep 17 00:00:00 2001 From: David Wells Date: Wed, 1 May 2024 15:46:47 -0400 Subject: [PATCH] Fix a compiler warning. --- source/fe/fe_simplex_p.cc | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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)) -- 2.39.5