From fe5f3d794f3457e918d469c61a2ce323e22d49a9 Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Fri, 17 Jun 2022 19:02:37 +0200 Subject: [PATCH] MatrixFree: improve assert --- source/matrix_free/task_info.cc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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) -- 2.39.5