]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Improve assert message 10890/head
authorPeter Munch <peterrmuench@gmail.com>
Fri, 4 Sep 2020 09:24:26 +0000 (11:24 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Fri, 4 Sep 2020 09:24:26 +0000 (11:24 +0200)
include/deal.II/matrix_free/matrix_free.templates.h

index 19e6710dac844e77d3d463e1cd446174fcaa3ea8..ea43fd4a0cd967805fa4e359d2618bc863d02d1a 100644 (file)
@@ -960,6 +960,16 @@ namespace internal
     const unsigned int         n_lanes = task_info.vectorization_length;
     std::vector<unsigned int>  renumbering;
     std::vector<unsigned char> irregular_cells;
+
+    Assert(
+      task_info.scheme == internal::MatrixFreeFunctions::TaskInfo::none ||
+        cell_vectorization_category.empty(),
+      ExcMessage(
+        "You explicitly requested re-categorization of cells; however, this "
+        "feature is not available if threading is enabled. Please disable "
+        "threading in MatrixFree by setting "
+        "MatrixFree::Additional_data.tasks_parallel_scheme = MatrixFree<dim, double>::AdditionalData::none."));
+
     if (task_info.scheme == internal::MatrixFreeFunctions::TaskInfo::none)
       {
         const bool strict_categories =
@@ -1009,7 +1019,6 @@ namespace internal
         // indices in order to overlap communication in MPI with computations:
         // Place all cells with ghost indices into one chunk. Also reorder cells
         // so that we can parallelize by threads
-        Assert(cell_vectorization_category.empty(), ExcNotImplemented());
         task_info.initial_setup_blocks_tasks(subdomain_boundary_cells,
                                              renumbering,
                                              irregular_cells);

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.