]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make FEInterfaceValues compatible with filtered iterators
authorJean-Paul Pelteret <jppelteret@gmail.com>
Wed, 5 Jan 2022 19:05:20 +0000 (20:05 +0100)
committerJean-Paul Pelteret <jppelteret@gmail.com>
Thu, 6 Jan 2022 08:13:13 +0000 (09:13 +0100)
include/deal.II/fe/fe_interface_values.h

index fe4e9257932ccf6b9c5a869bbc65b67d0df5c76b..bba456d6eac5a5e9f83b55aa076c86ff503b88d4 100644 (file)
@@ -1405,14 +1405,14 @@ public:
    * @param[in] sub_face_no_neighbor Like `sub_face_no`, just for the
    *   neighboring cell.
    */
-  template <class CellIteratorType>
+  template <class CellIteratorType, class CellNeighborIteratorType>
   void
-  reinit(const CellIteratorType &                         cell,
-         const unsigned int                               face_no,
-         const unsigned int                               sub_face_no,
-         const typename identity<CellIteratorType>::type &cell_neighbor,
-         const unsigned int                               face_no_neighbor,
-         const unsigned int                               sub_face_no_neighbor);
+  reinit(const CellIteratorType &        cell,
+         const unsigned int              face_no,
+         const unsigned int              sub_face_no,
+         const CellNeighborIteratorType &cell_neighbor,
+         const unsigned int              face_no_neighbor,
+         const unsigned int              sub_face_no_neighbor);
 
   /**
    * Re-initialize this object to be used on an interface given by a single face
@@ -2028,15 +2028,15 @@ FEInterfaceValues<dim, spacedim>::FEInterfaceValues(
 
 
 template <int dim, int spacedim>
-template <class CellIteratorType>
+template <class CellIteratorType, class CellNeighborIteratorType>
 void
 FEInterfaceValues<dim, spacedim>::reinit(
-  const CellIteratorType &                         cell,
-  const unsigned int                               face_no,
-  const unsigned int                               sub_face_no,
-  const typename identity<CellIteratorType>::type &cell_neighbor,
-  const unsigned int                               face_no_neighbor,
-  const unsigned int                               sub_face_no_neighbor)
+  const CellIteratorType &        cell,
+  const unsigned int              face_no,
+  const unsigned int              sub_face_no,
+  const CellNeighborIteratorType &cell_neighbor,
+  const unsigned int              face_no_neighbor,
+  const unsigned int              sub_face_no_neighbor)
 {
   if (sub_face_no == numbers::invalid_unsigned_int)
     {

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.