]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix MF::get_cell_active_fe_index() for non-hp and hp-DoFHandlers 18036/head
authorNils Much <nils.much@tum.de>
Mon, 27 Jan 2025 11:14:24 +0000 (12:14 +0100)
committerNils Much <nils.much@tum.de>
Mon, 27 Jan 2025 13:02:10 +0000 (14:02 +0100)
include/deal.II/matrix_free/matrix_free.h

index 7244e41a37473a003933b5e6cb5986716cf80554..2cb6774657c53eaa3cae0c5207805f3eeaf41faf 100644 (file)
@@ -2705,7 +2705,7 @@ MatrixFree<dim, Number, VectorizedArrayType>::get_cell_active_fe_index(
     dof_info[first_hp_dof_handler_index].cell_active_fe_index;
 
   if (fe_indices.empty() == true ||
-      dof_handlers[0]->get_fe_collection().size() == 1)
+      dof_handlers[first_hp_dof_handler_index]->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.