]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use first dof_handler in MF get_active_fe_index
authorDavid Schneider <david.schneider@ipvs.uni-stuttgart.de>
Wed, 8 Nov 2023 07:25:28 +0000 (08:25 +0100)
committerDavid Schneider <david.schneider@ipvs.uni-stuttgart.de>
Wed, 8 Nov 2023 07:25:28 +0000 (08:25 +0100)
include/deal.II/matrix_free/fe_evaluation.h
include/deal.II/matrix_free/matrix_free.h

index 81eef32ef60b3db2c91513e455255af303babb0a..92a43ad4a856456519ea3eb9c982374255372ed9 100644 (file)
@@ -7121,7 +7121,7 @@ inline FEEvaluation<dim,
                  dof_no,
                  quad_no,
                  first_selected_component,
-                 matrix_free.get_cell_active_fe_index(range, dof_no))
+                 matrix_free.get_cell_active_fe_index(range))
 {}
 
 
index 32cb3098d744eef0c4b7bac2f7738738a2ae4b75..e5abcfc7113bbae9d89965ebd1a5cae6374a3323 100644 (file)
@@ -1618,7 +1618,7 @@ public:
    */
   unsigned int
   get_cell_active_fe_index(
-    const std::pair<unsigned int, unsigned int> range, unsigned int dof_index) const;
+    const std::pair<unsigned int, unsigned int> range) const;
 
   /**
    * In the hp-adaptive case, return the active FE index of a face range.
@@ -2689,12 +2689,12 @@ MatrixFree<dim, Number, VectorizedArrayType>::n_active_fe_indices() const
 template <int dim, typename Number, typename VectorizedArrayType>
 unsigned int
 MatrixFree<dim, Number, VectorizedArrayType>::get_cell_active_fe_index(
-  const std::pair<unsigned int, unsigned int> range, unsigned int dof_handler_index) const
+  const std::pair<unsigned int, unsigned int> range) const
 {
   const auto &fe_indices = dof_info[0].cell_active_fe_index;
 
   if (fe_indices.empty() == true ||
-     dof_handlers[dof_handler_index]->get_fe_collection().size() == 1)
+     dof_handlers[0]->get_fe_collection().size() == 1)
     return 0;
 
   const auto index = fe_indices[range.first];

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.