From 69aa2ce7d61889173d38a7bcf8ea57d201fc5f81 Mon Sep 17 00:00:00 2001 From: Vicente Mataix Ferrandiz Date: Sun, 17 Dec 2023 10:53:46 +0100 Subject: [PATCH] Fix clang compilation --- kratos/spatial_containers/search_wrapper.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kratos/spatial_containers/search_wrapper.h b/kratos/spatial_containers/search_wrapper.h index 8f82273afcc7..391ab9ec719b 100644 --- a/kratos/spatial_containers/search_wrapper.h +++ b/kratos/spatial_containers/search_wrapper.h @@ -627,7 +627,7 @@ class KRATOS_API(KRATOS_CORE) SearchWrapper struct TLS { Point point; }; - IndexPartition(total_number_of_points).for_each(TLS(),[this, &search_info, &rResults, &Radius, &allocation_size, &rank](std::size_t i_point, TLS& rTLS) { + IndexPartition(total_number_of_points).for_each(TLS(),[this, &search_info, &rResults, &Radius, &allocation_size](std::size_t i_point, TLS& rTLS) { rTLS.point[0] = search_info.PointCoordinates[i_point * 3 + 0]; rTLS.point[1] = search_info.PointCoordinates[i_point * 3 + 1]; rTLS.point[2] = search_info.PointCoordinates[i_point * 3 + 2]; @@ -694,7 +694,7 @@ class KRATOS_API(KRATOS_CORE) SearchWrapper struct TLS { Point point; }; - IndexPartition(total_number_of_points).for_each(TLS(),[this, &search_info, &rResults, &Radius, &allocation_size, &rank](std::size_t i_point, TLS& rTLS) { + IndexPartition(total_number_of_points).for_each(TLS(),[this, &search_info, &rResults, &Radius, &allocation_size](std::size_t i_point, TLS& rTLS) { rTLS.point[0] = search_info.PointCoordinates[i_point * 3 + 0]; rTLS.point[1] = search_info.PointCoordinates[i_point * 3 + 1]; rTLS.point[2] = search_info.PointCoordinates[i_point * 3 + 2]; @@ -761,7 +761,7 @@ class KRATOS_API(KRATOS_CORE) SearchWrapper struct TLS { Point point; }; - IndexPartition(total_number_of_points).for_each(TLS(),[this, &search_info, &rResults, &rank](std::size_t i_point, TLS& rTLS) { + IndexPartition(total_number_of_points).for_each(TLS(),[this, &search_info, &rResults](std::size_t i_point, TLS& rTLS) { rTLS.point[0] = search_info.PointCoordinates[i_point * 3 + 0]; rTLS.point[1] = search_info.PointCoordinates[i_point * 3 + 1]; rTLS.point[2] = search_info.PointCoordinates[i_point * 3 + 2]; @@ -825,7 +825,7 @@ class KRATOS_API(KRATOS_CORE) SearchWrapper struct TLS { Point point; }; - IndexPartition(total_number_of_points).for_each(TLS(),[this, &search_info, &rResults, &rank](std::size_t i_point, TLS& rTLS) { + IndexPartition(total_number_of_points).for_each(TLS(),[this, &search_info, &rResults](std::size_t i_point, TLS& rTLS) { rTLS.point[0] = search_info.PointCoordinates[i_point * 3 + 0]; rTLS.point[1] = search_info.PointCoordinates[i_point * 3 + 1]; rTLS.point[2] = search_info.PointCoordinates[i_point * 3 + 2];