]> https://gitweb.dealii.org/ - dealii.git/commitdiff
MatrixFree: improve assert 14005/head
authorPeter Munch <peterrmuench@gmail.com>
Fri, 17 Jun 2022 17:02:37 +0000 (19:02 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Fri, 17 Jun 2022 20:12:14 +0000 (22:12 +0200)
source/matrix_free/task_info.cc

index 5a851e8ddc9041d68641ce24571062d3ddad2111..30fb2506049321761be2234a0d271ad1fe053fba 100644 (file)
@@ -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)

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.