From 277e70c97de3d0519f83a9447442344b3371fc3b Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Fri, 23 Oct 2015 11:32:26 -0400 Subject: [PATCH] always sort copy_indices for multigrid --- source/multigrid/mg_transfer_prebuilt.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/multigrid/mg_transfer_prebuilt.cc b/source/multigrid/mg_transfer_prebuilt.cc index 334d50a305..aa5746c183 100644 --- a/source/multigrid/mg_transfer_prebuilt.cc +++ b/source/multigrid/mg_transfer_prebuilt.cc @@ -479,9 +479,8 @@ MGTransferPrebuilt::fill_and_communicate_copy_indices( } } - // If we are in debugging mode, we order the copy indices, so we get - // more reliable output for regression texts -#ifdef DEBUG + // Sort the indices. This will produce more reliable debug output for regression texts + // and likely won't hurt performance even in release mode. std::less > compare; for (unsigned int level=0; level::fill_and_communicate_copy_indices( std::sort(copy_indices_level_mine[level].begin(), copy_indices_level_mine[level].end(), compare); for (unsigned int level=0; level -- 2.39.5