From: Vladimir Yushutin Date: Sun, 19 May 2024 15:35:22 +0000 (-0400) Subject: The direct operator== is used now. X-Git-Tag: v9.6.0-rc1~254^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8a33d8666233d9f4ce8f5d0115b1f680c85ebda;p=dealii.git The direct operator== is used now. --- diff --git a/source/lac/sparsity_tools.cc b/source/lac/sparsity_tools.cc index a57bada4a1..d74fb69036 100644 --- a/source/lac/sparsity_tools.cc +++ b/source/lac/sparsity_tools.cc @@ -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);