From 918cddf9e7921cf779ac4d4b2de2085c82092c92 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 11 Jun 2015 20:00:03 -0500 Subject: [PATCH] Cleanup: only revert the global-to-local numbering in the parallel case. --- source/dofs/dof_renumbering.cc | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/source/dofs/dof_renumbering.cc b/source/dofs/dof_renumbering.cc index d197d5178a..d0cd8f6d4f 100644 --- a/source/dofs/dof_renumbering.cc +++ b/source/dofs/dof_renumbering.cc @@ -422,7 +422,7 @@ namespace DoFRenumbering for (unsigned int i=0; icolumn() != row && locally_owned.is_element(it->column())) @@ -431,23 +431,24 @@ namespace DoFRenumbering true); } - AssertDimension(new_indices.size(), sparsity.n_rows()); + AssertDimension(new_indices.size(), locally_owned.n_elements()); SparsityTools::reorder_Cuthill_McKee (sparsity, new_indices, starting_indices); + if (reversed_numbering) + new_indices = Utilities::reverse_permutation (new_indices); + + // convert indices back to global index space + for (std::size_t i=0; i