]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Augment text.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 21 May 2013 13:52:37 +0000 (13:52 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 21 May 2013 13:52:37 +0000 (13:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@29535 0785d39b-7218-0410-832d-ea1e28bc413d

tests/mpi/petsc_condense_02.cc

index 4499b9b583c23c636df0cdee542046a36d136594..4cd62581608dc6ac7d25fa67966356f337d49693 100644 (file)
 //
 // 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<n_processes; ++p)
     {
-      if ((p != 0) && locally_relevant_range.is_element (p*100+10))
+      if ((p != 0) && locally_owned_range.is_element (p*100+10))
        {
          cm.add_line (p*100+10);
          cm.add_entry (p*100+10,
@@ -87,7 +90,7 @@ void test()
                        1);
        }
 
-      if ((p != n_processes-1) && locally_relevant_range.is_element (p*100+90))
+      if ((p != n_processes-1) && locally_owned_range.is_element (p*100+90))
        {
          cm.add_line (p*100+90);
          cm.add_entry (p*100+90,

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.