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];