]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Dynamic Sparsity Pattern must be initialized with locally_relevant_rows. Without...
authorVladimir Yushutin <vyushut@clemson.edu>
Thu, 16 May 2024 19:23:12 +0000 (15:23 -0400)
committerVladimir Yushutin <vyushut@clemson.edu>
Thu, 16 May 2024 19:23:12 +0000 (15:23 -0400)
source/lac/sparsity_tools.cc

index 348358f4ff4620ec6067f9d9383c7bc42a566e19..a57bada4a10ba7b1e6d229c7ff12de3dbdde6154 100644 (file)
@@ -1022,6 +1022,13 @@ namespace SparsityTools
                               const MPI_Comm          mpi_comm,
                               const IndexSet         &locally_relevant_rows)
   {
+    IndexSet rows_dsp = dsp.row_index_set();
+    rows_dsp.subtract_set(locally_relevant_rows);
+    AssertThrow(
+      rows_dsp.n_elements() == 0,
+      ExcMessage(
+        "Dynamic Sparsity Pattern must be initialized with locally_relevant_rows."));
+
     IndexSet requested_rows(locally_relevant_rows);
     requested_rows.subtract_set(locally_owned_rows);
 

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.