From 67471300994ab703fd78b7661cd62d23b95823d5 Mon Sep 17 00:00:00 2001 From: heister Date: Fri, 31 Aug 2012 18:22:48 +0000 Subject: [PATCH] document ghosted vectors git-svn-id: https://svn.dealii.org/trunk@26189 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/doc/doxygen/headers/distributed.h | 27 +++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/deal.II/doc/doxygen/headers/distributed.h b/deal.II/doc/doxygen/headers/distributed.h index f5ff673c46..93830f4e6a 100644 --- a/deal.II/doc/doxygen/headers/distributed.h +++ b/deal.II/doc/doxygen/headers/distributed.h @@ -230,6 +230,33 @@ * information is provided by the * DoFTools::extract_locally_relevant_dofs() function. * + *
Vectors with Ghost-elements
+ * + * A typical parallel application is dealing with two different kinds + * of parallel vectors: vectors with ghost elements (also called + * ghosted vectors) and vectors without ghost elements. Of course + * these might be different flavours (BlockVector, Vector; using + * Trilinos or PETSc, etc.). + * + * In vectors without ghost elements knowledge about a single entry i + * in the vector is only known to a single processor. They are + * constructed with an IndexSet reflecting the + * locally_owned_dofs(). There is no overlap in the IndexSets. + * Ghosted vectors are typically created using locally_active or + * locally_relevant IndexSets and contain elements on processors that + * are owned by a different processor. + * + * One important aspect is that we forbid any modification of ghosted + * vectors. This is because it would create subtle bugs if elements + * are edited on one processor but do not immediately transfer to the + * ghosted entries on the other processors. + * + * The usage is typically split up in the following way: ghosted + * vectors are used for data output, postprocessing, error estimation, + * input in integration. Vectors without ghost entries are used in all + * other places like assembling, solving, or any other form of + * manipulation. You can copy between vectors with and without ghost + * elements (you can see this in step-40 and step-32) using operator=. * *
Sparsity patterns
* -- 2.39.5