From e8a33d8666233d9f4ce8f5d0115b1f680c85ebda Mon Sep 17 00:00:00 2001 From: Vladimir Yushutin Date: Sun, 19 May 2024 11:35:22 -0400 Subject: [PATCH] The direct operator== is used now. --- source/lac/sparsity_tools.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); -- 2.39.5