From: Wolfgang Bangerth Date: Wed, 19 Feb 2025 15:12:39 +0000 (-0700) Subject: Use explicit constructor for iota_view. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=398fe6b732da5cf76020066feda721e94a9c5d1d;p=dealii.git Use explicit constructor for iota_view. --- diff --git a/include/deal.II/base/geometry_info.h b/include/deal.II/base/geometry_info.h index 2c20744973..fa6d2cf6b5 100644 --- a/include/deal.II/base/geometry_info.h +++ b/include/deal.II/base/geometry_info.h @@ -2961,7 +2961,8 @@ template inline std_cxx20::ranges::iota_view GeometryInfo::face_indices() { - return {0U, faces_per_cell}; + return std_cxx20::ranges::iota_view( + 0U, faces_per_cell); } @@ -2970,7 +2971,8 @@ template inline std_cxx20::ranges::iota_view GeometryInfo::vertex_indices() { - return {0U, vertices_per_cell}; + return std_cxx20::ranges::iota_view( + 0U, vertices_per_cell); } diff --git a/include/deal.II/fe/fe_interface_values.h b/include/deal.II/fe/fe_interface_values.h index 4f16316977..bc4a39d00e 100644 --- a/include/deal.II/fe/fe_interface_values.h +++ b/include/deal.II/fe/fe_interface_values.h @@ -2789,7 +2789,8 @@ template inline std_cxx20::ranges::iota_view FEInterfaceValues::quadrature_point_indices() const { - return {0U, n_quadrature_points}; + return std_cxx20::ranges::iota_view( + 0U, n_quadrature_points); } diff --git a/include/deal.II/fe/fe_values_base.h b/include/deal.II/fe/fe_values_base.h index 4a14bcf85f..df8d567f85 100644 --- a/include/deal.II/fe/fe_values_base.h +++ b/include/deal.II/fe/fe_values_base.h @@ -2349,7 +2349,8 @@ template inline std_cxx20::ranges::iota_view FEValuesBase::dof_indices() const { - return {0U, dofs_per_cell}; + return std_cxx20::ranges::iota_view( + 0U, dofs_per_cell); } @@ -2361,7 +2362,8 @@ FEValuesBase::dof_indices_starting_at( { Assert(start_dof_index <= dofs_per_cell, ExcIndexRange(start_dof_index, 0, dofs_per_cell + 1)); - return {start_dof_index, dofs_per_cell}; + return std_cxx20::ranges::iota_view( + start_dof_index, dofs_per_cell); } @@ -2373,7 +2375,8 @@ FEValuesBase::dof_indices_ending_at( { Assert(end_dof_index < dofs_per_cell, ExcIndexRange(end_dof_index, 0, dofs_per_cell)); - return {0U, end_dof_index + 1}; + return std_cxx20::ranges::iota_view( + 0U, end_dof_index + 1); } @@ -2382,7 +2385,8 @@ template inline std_cxx20::ranges::iota_view FEValuesBase::quadrature_point_indices() const { - return {0U, n_quadrature_points}; + return std_cxx20::ranges::iota_view( + 0U, n_quadrature_points); } diff --git a/include/deal.II/grid/reference_cell.h b/include/deal.II/grid/reference_cell.h index 8d29514a52..e1691f8863 100644 --- a/include/deal.II/grid/reference_cell.h +++ b/include/deal.II/grid/reference_cell.h @@ -1934,7 +1934,8 @@ ReferenceCell::n_faces() const inline std_cxx20::ranges::iota_view ReferenceCell::face_indices() const { - return {0U, n_faces()}; + return std_cxx20::ranges::iota_view(0U, + n_faces()); } @@ -2050,7 +2051,8 @@ ReferenceCell::n_children(const RefinementCase ref_case) const inline std_cxx20::ranges::iota_view ReferenceCell::isotropic_child_indices() const { - return {0U, n_isotropic_children()}; + return std_cxx20::ranges::iota_view( + 0U, n_isotropic_children()); } @@ -2058,7 +2060,8 @@ ReferenceCell::isotropic_child_indices() const inline std_cxx20::ranges::iota_view ReferenceCell::vertex_indices() const { - return {0U, n_vertices()}; + return std_cxx20::ranges::iota_view(0U, + n_vertices()); } @@ -2066,7 +2069,8 @@ ReferenceCell::vertex_indices() const inline std_cxx20::ranges::iota_view ReferenceCell::line_indices() const { - return {0U, n_lines()}; + return std_cxx20::ranges::iota_view(0U, + n_lines()); } diff --git a/include/deal.II/grid/tria_accessor.h b/include/deal.II/grid/tria_accessor.h index 4699fee71a..9ea31ea620 100644 --- a/include/deal.II/grid/tria_accessor.h +++ b/include/deal.II/grid/tria_accessor.h @@ -6592,7 +6592,8 @@ template std_cxx20::ranges::iota_view TriaAccessor::vertex_indices() const { - return {0U, n_vertices()}; + return std_cxx20::ranges::iota_view(0U, + n_vertices()); } @@ -6601,7 +6602,8 @@ template std_cxx20::ranges::iota_view TriaAccessor::line_indices() const { - return {0U, n_lines()}; + return std_cxx20::ranges::iota_view(0U, + n_lines()); } @@ -6610,7 +6612,8 @@ template std_cxx20::ranges::iota_view TriaAccessor::face_indices() const { - return {0U, n_faces()}; + return std_cxx20::ranges::iota_view(0U, + n_faces()); } @@ -7530,7 +7533,8 @@ template std_cxx20::ranges::iota_view TriaAccessor<0, 1, spacedim>::vertex_indices() const { - return {0U, n_vertices()}; + return std_cxx20::ranges::iota_view(0U, + n_vertices()); } @@ -7539,7 +7543,8 @@ template std_cxx20::ranges::iota_view TriaAccessor<0, 1, spacedim>::line_indices() const { - return {0U, n_lines()}; + return std_cxx20::ranges::iota_view(0U, + n_lines()); } /*------------------ Functions: CellAccessor ------------------*/ diff --git a/include/deal.II/matrix_free/fe_evaluation.h b/include/deal.II/matrix_free/fe_evaluation.h index 4b5646e9ef..e4bf3389da 100644 --- a/include/deal.II/matrix_free/fe_evaluation.h +++ b/include/deal.II/matrix_free/fe_evaluation.h @@ -7210,7 +7210,8 @@ FEEvaluation::dof_indices() const { - return {0U, dofs_per_cell}; + return std_cxx20::ranges::iota_view( + 0U, dofs_per_cell); } @@ -8240,7 +8241,8 @@ FEFaceEvaluation::dof_indices() const { - return {0U, dofs_per_cell}; + return std_cxx20::ranges::iota_view( + 0U, dofs_per_cell); } diff --git a/include/deal.II/matrix_free/fe_evaluation_data.h b/include/deal.II/matrix_free/fe_evaluation_data.h index 3ba510bad3..7a54ba8c56 100644 --- a/include/deal.II/matrix_free/fe_evaluation_data.h +++ b/include/deal.II/matrix_free/fe_evaluation_data.h @@ -1653,7 +1653,8 @@ template inline std_cxx20::ranges::iota_view FEEvaluationData::quadrature_point_indices() const { - return {0U, n_quadrature_points}; + return std_cxx20::ranges::iota_view( + 0U, n_quadrature_points); } diff --git a/include/deal.II/matrix_free/fe_point_evaluation.h b/include/deal.II/matrix_free/fe_point_evaluation.h index 46ee7a4ca8..f2adf1800e 100644 --- a/include/deal.II/matrix_free/fe_point_evaluation.h +++ b/include/deal.II/matrix_free/fe_point_evaluation.h @@ -2370,7 +2370,8 @@ inline std_cxx20::ranges::iota_view FEPointEvaluationBase:: quadrature_point_indices() const { - return {0U, n_q_points}; + return std_cxx20::ranges::iota_view(0U, + n_q_points); } diff --git a/source/base/mpi_remote_point_evaluation.cc b/source/base/mpi_remote_point_evaluation.cc index 6a71e7fc7b..23bbac677d 100644 --- a/source/base/mpi_remote_point_evaluation.cc +++ b/source/base/mpi_remote_point_evaluation.cc @@ -278,7 +278,8 @@ namespace Utilities std_cxx20::ranges::iota_view RemotePointEvaluation::CellData::cell_indices() const { - return {0, static_cast(cells.size())}; + return std_cxx20::ranges::iota_view( + 0, static_cast(cells.size())); }