]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Implement all these reinit() functions also for non-hp iterators.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 23 Feb 2006 00:59:35 +0000 (00:59 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 23 Feb 2006 00:59:35 +0000 (00:59 +0000)
git-svn-id: https://svn.dealii.org/trunk@12461 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/fe/hp_fe_values.h

index b270eb207198d78b86485af1703d6a23c112b052..b550f8c96bf7aafa3183c529386ea4ade7885a6b 100644 (file)
@@ -350,6 +350,112 @@ namespace hp
                                         */
       void
       reinit (const typename hp::DoFHandler<dim>::cell_iterator &cell,
+              const unsigned int q_index = deal_II_numbers::invalid_unsigned_int,
+              const unsigned int mapping_index = deal_II_numbers::invalid_unsigned_int,
+              const unsigned int fe_index = deal_II_numbers::invalid_unsigned_int);
+
+                                       /**
+                                        * Like the previous function,
+                                        * but for non-hp
+                                        * iterators. The reason this
+                                        * (and the other non-hp
+                                        * iterator) function exists is
+                                        * so that one can use
+                                        * hp::FEValues not only for
+                                        * hp::DoFhandler objects, but
+                                        * for all sorts of DoFHandler
+                                        * objects, and triangulations
+                                        * not associated with
+                                        * DoFHandlers in general.
+                                        *
+                                        * Since
+                                        * <code>cell-@>active_fe_index()</code>
+                                        * always returns zero for
+                                        * non-hp iterators, this
+                                        * function chooses the zero-th
+                                        * finite element, mapping, and
+                                        * quadrature object from the
+                                        * relevant constructions
+                                        * passed to the constructor of
+                                        * this object. The only
+                                        * exception is if you specify
+                                        * a value different from the
+                                        * default value for any of
+                                        * these last three arguments.
+                                        */
+      void
+      reinit (const typename ::DoFHandler<dim>::cell_iterator &cell,
+              const unsigned int q_index = deal_II_numbers::invalid_unsigned_int,
+              const unsigned int mapping_index = deal_II_numbers::invalid_unsigned_int,
+              const unsigned int fe_index = deal_II_numbers::invalid_unsigned_int);
+
+                                       /**
+                                        * Like the previous function,
+                                        * but for non-hp
+                                        * iterators. The reason this
+                                        * (and the other non-hp
+                                        * iterator) function exists is
+                                        * so that one can use
+                                        * hp::FEValues not only for
+                                        * hp::DoFhandler objects, but
+                                        * for all sorts of DoFHandler
+                                        * objects, and triangulations
+                                        * not associated with
+                                        * DoFHandlers in general.
+                                        *
+                                        * Since
+                                        * <code>cell-@>active_fe_index()</code>
+                                        * always returns zero for
+                                        * non-hp iterators, this
+                                        * function chooses the zero-th
+                                        * finite element, mapping, and
+                                        * quadrature object from the
+                                        * relevant constructions
+                                        * passed to the constructor of
+                                        * this object. The only
+                                        * exception is if you specify
+                                        * a value different from the
+                                        * default value for any of
+                                        * these last three arguments.
+                                        */
+      void
+      reinit (const typename MGDoFHandler<dim>::cell_iterator &cell,
+              const unsigned int q_index = deal_II_numbers::invalid_unsigned_int,
+              const unsigned int mapping_index = deal_II_numbers::invalid_unsigned_int,
+              const unsigned int fe_index = deal_II_numbers::invalid_unsigned_int);
+      
+                                       /**
+                                        * Like the previous function,
+                                        * but for non-hp
+                                        * iterators. The reason this
+                                        * (and the other non-hp
+                                        * iterator) function exists is
+                                        * so that one can use
+                                        * hp::FEValues not only for
+                                        * hp::DoFhandler objects, but
+                                        * for all sorts of DoFHandler
+                                        * objects, and triangulations
+                                        * not associated with
+                                        * DoFHandlers in general.
+                                        *
+                                        * Since
+                                        * <code>cell-@>active_fe_index()</code>
+                                        * doesn't make sense for
+                                        * triangulation iterators,
+                                        * this function chooses the
+                                        * zero-th finite element,
+                                        * mapping, and quadrature
+                                        * object from the relevant
+                                        * constructions passed to the
+                                        * constructor of this
+                                        * object. The only exception
+                                        * is if you specify a value
+                                        * different from the default
+                                        * value for any of these last
+                                        * three arguments.
+                                        */
+      void
+      reinit (const typename Triangulation<dim>::cell_iterator &cell,
               const unsigned int q_index = deal_II_numbers::invalid_unsigned_int,
               const unsigned int mapping_index = deal_II_numbers::invalid_unsigned_int,
               const unsigned int fe_index = deal_II_numbers::invalid_unsigned_int);
@@ -518,6 +624,115 @@ namespace hp
                                         */
       void
       reinit (const typename hp::DoFHandler<dim>::cell_iterator &cell,
+              const unsigned int face_no,
+              const unsigned int q_index = deal_II_numbers::invalid_unsigned_int,
+              const unsigned int mapping_index = deal_II_numbers::invalid_unsigned_int,
+              const unsigned int fe_index = deal_II_numbers::invalid_unsigned_int);
+
+                                       /**
+                                        * Like the previous function,
+                                        * but for non-hp
+                                        * iterators. The reason this
+                                        * (and the other non-hp
+                                        * iterator) function exists is
+                                        * so that one can use
+                                        * hp::FEValues not only for
+                                        * hp::DoFhandler objects, but
+                                        * for all sorts of DoFHandler
+                                        * objects, and triangulations
+                                        * not associated with
+                                        * DoFHandlers in general.
+                                        *
+                                        * Since
+                                        * <code>cell-@>active_fe_index()</code>
+                                        * always returns zero for
+                                        * non-hp iterators, this
+                                        * function chooses the zero-th
+                                        * finite element, mapping, and
+                                        * quadrature object from the
+                                        * relevant constructions
+                                        * passed to the constructor of
+                                        * this object. The only
+                                        * exception is if you specify
+                                        * a value different from the
+                                        * default value for any of
+                                        * these last three arguments.
+                                        */
+      void
+      reinit (const typename ::DoFHandler<dim>::cell_iterator &cell,
+              const unsigned int face_no,
+              const unsigned int q_index = deal_II_numbers::invalid_unsigned_int,
+              const unsigned int mapping_index = deal_II_numbers::invalid_unsigned_int,
+              const unsigned int fe_index = deal_II_numbers::invalid_unsigned_int);
+
+                                       /**
+                                        * Like the previous function,
+                                        * but for non-hp
+                                        * iterators. The reason this
+                                        * (and the other non-hp
+                                        * iterator) function exists is
+                                        * so that one can use
+                                        * hp::FEValues not only for
+                                        * hp::DoFhandler objects, but
+                                        * for all sorts of DoFHandler
+                                        * objects, and triangulations
+                                        * not associated with
+                                        * DoFHandlers in general.
+                                        *
+                                        * Since
+                                        * <code>cell-@>active_fe_index()</code>
+                                        * always returns zero for
+                                        * non-hp iterators, this
+                                        * function chooses the zero-th
+                                        * finite element, mapping, and
+                                        * quadrature object from the
+                                        * relevant constructions
+                                        * passed to the constructor of
+                                        * this object. The only
+                                        * exception is if you specify
+                                        * a value different from the
+                                        * default value for any of
+                                        * these last three arguments.
+                                        */
+      void
+      reinit (const typename MGDoFHandler<dim>::cell_iterator &cell,
+              const unsigned int face_no,
+              const unsigned int q_index = deal_II_numbers::invalid_unsigned_int,
+              const unsigned int mapping_index = deal_II_numbers::invalid_unsigned_int,
+              const unsigned int fe_index = deal_II_numbers::invalid_unsigned_int);
+      
+                                       /**
+                                        * Like the previous function,
+                                        * but for non-hp
+                                        * iterators. The reason this
+                                        * (and the other non-hp
+                                        * iterator) function exists is
+                                        * so that one can use
+                                        * hp::FEValues not only for
+                                        * hp::DoFhandler objects, but
+                                        * for all sorts of DoFHandler
+                                        * objects, and triangulations
+                                        * not associated with
+                                        * DoFHandlers in general.
+                                        *
+                                        * Since
+                                        * <code>cell-@>active_fe_index()</code>
+                                        * doesn't make sense for
+                                        * triangulation iterators,
+                                        * this function chooses the
+                                        * zero-th finite element,
+                                        * mapping, and quadrature
+                                        * object from the relevant
+                                        * constructions passed to the
+                                        * constructor of this
+                                        * object. The only exception
+                                        * is if you specify a value
+                                        * different from the default
+                                        * value for any of these last
+                                        * three arguments.
+                                        */
+      void
+      reinit (const typename Triangulation<dim>::cell_iterator &cell,
               const unsigned int face_no,
               const unsigned int q_index = deal_II_numbers::invalid_unsigned_int,
               const unsigned int mapping_index = deal_II_numbers::invalid_unsigned_int,
@@ -666,6 +881,118 @@ namespace hp
                                         */
       void
       reinit (const typename hp::DoFHandler<dim>::cell_iterator &cell,
+              const unsigned int face_no,
+              const unsigned int subface_no,
+              const unsigned int q_index = deal_II_numbers::invalid_unsigned_int,
+              const unsigned int mapping_index = deal_II_numbers::invalid_unsigned_int,
+              const unsigned int fe_index = deal_II_numbers::invalid_unsigned_int);
+
+                                       /**
+                                        * Like the previous function,
+                                        * but for non-hp
+                                        * iterators. The reason this
+                                        * (and the other non-hp
+                                        * iterator) function exists is
+                                        * so that one can use
+                                        * hp::FEValues not only for
+                                        * hp::DoFhandler objects, but
+                                        * for all sorts of DoFHandler
+                                        * objects, and triangulations
+                                        * not associated with
+                                        * DoFHandlers in general.
+                                        *
+                                        * Since
+                                        * <code>cell-@>active_fe_index()</code>
+                                        * always returns zero for
+                                        * non-hp iterators, this
+                                        * function chooses the zero-th
+                                        * finite element, mapping, and
+                                        * quadrature object from the
+                                        * relevant constructions
+                                        * passed to the constructor of
+                                        * this object. The only
+                                        * exception is if you specify
+                                        * a value different from the
+                                        * default value for any of
+                                        * these last three arguments.
+                                        */
+      void
+      reinit (const typename ::DoFHandler<dim>::cell_iterator &cell,
+              const unsigned int face_no,
+              const unsigned int subface_no,
+              const unsigned int q_index = deal_II_numbers::invalid_unsigned_int,
+              const unsigned int mapping_index = deal_II_numbers::invalid_unsigned_int,
+              const unsigned int fe_index = deal_II_numbers::invalid_unsigned_int);
+
+                                       /**
+                                        * Like the previous function,
+                                        * but for non-hp
+                                        * iterators. The reason this
+                                        * (and the other non-hp
+                                        * iterator) function exists is
+                                        * so that one can use
+                                        * hp::FEValues not only for
+                                        * hp::DoFhandler objects, but
+                                        * for all sorts of DoFHandler
+                                        * objects, and triangulations
+                                        * not associated with
+                                        * DoFHandlers in general.
+                                        *
+                                        * Since
+                                        * <code>cell-@>active_fe_index()</code>
+                                        * always returns zero for
+                                        * non-hp iterators, this
+                                        * function chooses the zero-th
+                                        * finite element, mapping, and
+                                        * quadrature object from the
+                                        * relevant constructions
+                                        * passed to the constructor of
+                                        * this object. The only
+                                        * exception is if you specify
+                                        * a value different from the
+                                        * default value for any of
+                                        * these last three arguments.
+                                        */
+      void
+      reinit (const typename MGDoFHandler<dim>::cell_iterator &cell,
+              const unsigned int face_no,
+              const unsigned int subface_no,
+              const unsigned int q_index = deal_II_numbers::invalid_unsigned_int,
+              const unsigned int mapping_index = deal_II_numbers::invalid_unsigned_int,
+              const unsigned int fe_index = deal_II_numbers::invalid_unsigned_int);
+      
+                                       /**
+                                        * Like the previous function,
+                                        * but for non-hp
+                                        * iterators. The reason this
+                                        * (and the other non-hp
+                                        * iterator) function exists is
+                                        * so that one can use
+                                        * hp::FEValues not only for
+                                        * hp::DoFhandler objects, but
+                                        * for all sorts of DoFHandler
+                                        * objects, and triangulations
+                                        * not associated with
+                                        * DoFHandlers in general.
+                                        *
+                                        * Since
+                                        * <code>cell-@>active_fe_index()</code>
+                                        * doesn't make sense for
+                                        * triangulation iterators,
+                                        * this function chooses the
+                                        * zero-th finite element,
+                                        * mapping, and quadrature
+                                        * object from the relevant
+                                        * constructions passed to the
+                                        * constructor of this
+                                        * object. The only exception
+                                        * is if you specify a value
+                                        * different from the default
+                                        * value for any of these last
+                                        * three arguments.
+                                        */
+      void
+      reinit (const typename Triangulation<dim>::cell_iterator &cell,
               const unsigned int face_no,
               const unsigned int subface_no,
               const unsigned int q_index = deal_II_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.