From: Nils Much Date: Mon, 27 Jan 2025 11:14:24 +0000 (+0100) Subject: Fix MF::get_cell_active_fe_index() for non-hp and hp-DoFHandlers X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F18036%2Fhead;p=dealii.git Fix MF::get_cell_active_fe_index() for non-hp and hp-DoFHandlers --- diff --git a/include/deal.II/matrix_free/matrix_free.h b/include/deal.II/matrix_free/matrix_free.h index 7244e41a37..2cb6774657 100644 --- a/include/deal.II/matrix_free/matrix_free.h +++ b/include/deal.II/matrix_free/matrix_free.h @@ -2705,7 +2705,7 @@ MatrixFree::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];