]> https://gitweb.dealii.org/ - dealii.git/commitdiff
The direct operator== is used now.
authorVladimir Yushutin <vyushut@clemson.edu>
Sun, 19 May 2024 15:35:22 +0000 (11:35 -0400)
committerVladimir Yushutin <vyushut@clemson.edu>
Sun, 19 May 2024 15:35:22 +0000 (11:35 -0400)
source/lac/sparsity_tools.cc

index a57bada4a10ba7b1e6d229c7ff12de3dbdde6154..d74fb6903698d673223ee3e95bb3cc10eafb0ad1 100644 (file)
@@ -1022,12 +1022,10 @@ 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,
+      dsp.row_index_set() == locally_relevant_rows,
       ExcMessage(
-        "Dynamic Sparsity Pattern must be initialized with locally_relevant_rows."));
+        "The DynamicSparsityPattern must be initialized with an IndexSet that contains locally relevant indices."));
 
     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.