From: Peter Munch Date: Fri, 17 Jun 2022 17:02:37 +0000 (+0200) Subject: MatrixFree: improve assert X-Git-Tag: v9.5.0-rc1~1192^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14005%2Fhead;p=dealii.git MatrixFree: improve assert --- diff --git a/source/matrix_free/task_info.cc b/source/matrix_free/task_info.cc index 5a851e8ddc..30fb250604 100644 --- a/source/matrix_free/task_info.cc +++ b/source/matrix_free/task_info.cc @@ -1060,8 +1060,16 @@ namespace internal ++cell) { if (!cell_vectorization_categories.empty()) - AssertDimension(cell_vectorization_categories[cell], - cell_vectorization_categories[n_active_cells]); + Assert( + cell_vectorization_categories[cell] == + cell_vectorization_categories[n_active_cells], + ExcMessage( + "Currently, all ghost cells need to have the same category, " + "but got " + + std::to_string(cell_vectorization_categories[cell]) + " and " + + std::to_string(cell_vectorization_categories[n_active_cells]) + + ". Please check MatrixFree::AdditionalData::cell_vectorization_category " + "or the active FE index of the ghost cells in the hp case!")); renumbering[cell] = cell; } if ((n_ghost_cells % n_lanes) != 0u)