From: Marco Feder Date: Thu, 27 Apr 2023 14:08:59 +0000 (+0200) Subject: Allow MappingInfo::reinit_cells() to work on containers X-Git-Tag: v9.5.0-rc1~278^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5166f5a50c1048867de2b72edcda003a543225f9;p=dealii.git Allow MappingInfo::reinit_cells() to work on containers --- diff --git a/include/deal.II/non_matching/mapping_info.h b/include/deal.II/non_matching/mapping_info.h index 9dc630e15f..7a106c18ac 100644 --- a/include/deal.II/non_matching/mapping_info.h +++ b/include/deal.II/non_matching/mapping_info.h @@ -87,8 +87,8 @@ namespace NonMatching const Quadrature &quadrature); /** - * Compute the mapping information for the incoming vector of cells and - * corresponding vector of unit points. + * Compute the mapping information for the incoming iterable container of + * cell iterators and corresponding vector of unit points. * * It is possible to give an IteratorRange to this * function and together with @p n_unfiltered_cells specified this object @@ -96,22 +96,23 @@ namespace NonMatching * with the "unfiltered" index. The default argument for * @p n_unfiltered_cells disables this built-in compression. */ - template + template void reinit_cells( - const IteratorRange & cell_iterator_range, + const ContainerType & cell_iterator_range, const std::vector>> &unit_points_vector, const unsigned int n_unfiltered_cells = numbers::invalid_unsigned_int); /** - * Compute the mapping information for the incoming vector of cells and - * corresponding vector of quadratures. As opposed to the other `reinit` - * function, this method allows to access a `JxW` factor at the points. + * Compute the mapping information for the incoming iterable container of + * cell iterators and corresponding vector of quadratures. As opposed to the + * other `reinit` function, this method allows to access a `JxW` factor at + * the points. */ - template + template void reinit_cells( - const IteratorRange & cell_iterator_range, + const ContainerType & cell_iterator_range, const std::vector> &quadrature_vector, const unsigned int n_unfiltered_cells = numbers::invalid_unsigned_int); @@ -386,10 +387,10 @@ namespace NonMatching template - template + template void MappingInfo::reinit_cells( - const IteratorRange & cell_iterator_range, + const ContainerType & cell_iterator_range, const std::vector>> &unit_points_vector, const unsigned int n_unfiltered_cells) { @@ -409,10 +410,10 @@ namespace NonMatching template - template + template void MappingInfo::reinit_cells( - const IteratorRange & cell_iterator_range, + const ContainerType & cell_iterator_range, const std::vector> &quadrature_vector, const unsigned int n_unfiltered_cells) {