From f50f1053560f23aea8f8580cba99f8b6f4feb559 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 21 May 2013 13:52:37 +0000 Subject: [PATCH] Augment text. git-svn-id: https://svn.dealii.org/trunk@29535 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/mpi/petsc_condense_02.cc | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/tests/mpi/petsc_condense_02.cc b/tests/mpi/petsc_condense_02.cc index 4499b9b583..4cd6258160 100644 --- a/tests/mpi/petsc_condense_02.cc +++ b/tests/mpi/petsc_condense_02.cc @@ -26,8 +26,11 @@ // // compared to the _01 test, here the ConstraintMatrix object acts on an index // set that only includes the locally owned vector elements, without any -// overlap. this verifies that we really only need to know about the *sources* -// of constraints locally, not the *targets*. +// overlap. this verifies that we really only need to know about the *targets* +// of constraints locally, not the *sources*. (at the time of writing this +// test, ConstraintMatrix::distribute for PETSc distributed vectors actively +// imported the source vector elements for those target elements we locally +// own.) #include "../tests.h" @@ -63,12 +66,12 @@ void test() } - // create a ConstraintMatrix with a range that only includes locally active + // create a ConstraintMatrix with a range that only includes locally owned // DoFs - IndexSet locally_relevant_range (vec.size()); - locally_relevant_range.add_range (100*myid, + IndexSet locally_owned_range (vec.size()); + locally_owned_range.add_range (100*myid, 100*myid+100); - ConstraintMatrix cm (locally_relevant_range); + ConstraintMatrix cm (locally_owned_range); // add constraints that constrain an element in the middle of the // local range of each processor against an element outside, both in @@ -79,7 +82,7 @@ void test() // DoF inside the locally relevant range for (unsigned int p=0; p