From: Peter Munch Date: Fri, 4 Sep 2020 09:24:26 +0000 (+0200) Subject: Improve assert message X-Git-Tag: v9.3.0-rc1~1134^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f2e143f74b9e4bbbd56b0bdad5df932d38b4878;p=dealii.git Improve assert message --- diff --git a/include/deal.II/matrix_free/matrix_free.templates.h b/include/deal.II/matrix_free/matrix_free.templates.h index 19e6710dac..ea43fd4a0c 100644 --- a/include/deal.II/matrix_free/matrix_free.templates.h +++ b/include/deal.II/matrix_free/matrix_free.templates.h @@ -960,6 +960,16 @@ namespace internal const unsigned int n_lanes = task_info.vectorization_length; std::vector renumbering; std::vector 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::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);