]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Allow MappingInfo::reinit_cells() to work on containers 15151/head
authorMarco Feder <marco.feder@sissa.it>
Thu, 27 Apr 2023 14:08:59 +0000 (16:08 +0200)
committerMarco Feder <marco.feder@sissa.it>
Fri, 28 Apr 2023 17:38:51 +0000 (19:38 +0200)
include/deal.II/non_matching/mapping_info.h

index 9dc630e15fa34748a6a1e83f2aabf5ef7c92277c..7a106c18ace0bdb2129f9c2d32d3f2e8a2b7ea18 100644 (file)
@@ -87,8 +87,8 @@ namespace NonMatching
            const Quadrature<dim> &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<FilteredIterator> 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 <typename Iterator>
+    template <typename ContainerType>
     void
     reinit_cells(
-      const IteratorRange<Iterator> &             cell_iterator_range,
+      const ContainerType &                       cell_iterator_range,
       const std::vector<std::vector<Point<dim>>> &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 <typename Iterator>
+    template <typename ContainerType>
     void
     reinit_cells(
-      const IteratorRange<Iterator> &     cell_iterator_range,
+      const ContainerType &               cell_iterator_range,
       const std::vector<Quadrature<dim>> &quadrature_vector,
       const unsigned int n_unfiltered_cells = numbers::invalid_unsigned_int);
 
@@ -386,10 +387,10 @@ namespace NonMatching
 
 
   template <int dim, int spacedim>
-  template <typename Iterator>
+  template <typename ContainerType>
   void
   MappingInfo<dim, spacedim>::reinit_cells(
-    const IteratorRange<Iterator> &             cell_iterator_range,
+    const ContainerType &                       cell_iterator_range,
     const std::vector<std::vector<Point<dim>>> &unit_points_vector,
     const unsigned int                          n_unfiltered_cells)
   {
@@ -409,10 +410,10 @@ namespace NonMatching
 
 
   template <int dim, int spacedim>
-  template <typename Iterator>
+  template <typename ContainerType>
   void
   MappingInfo<dim, spacedim>::reinit_cells(
-    const IteratorRange<Iterator> &     cell_iterator_range,
+    const ContainerType &               cell_iterator_range,
     const std::vector<Quadrature<dim>> &quadrature_vector,
     const unsigned int                  n_unfiltered_cells)
   {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.