]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
document ghosted vectors
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 31 Aug 2012 18:22:48 +0000 (18:22 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 31 Aug 2012 18:22:48 +0000 (18:22 +0000)
git-svn-id: https://svn.dealii.org/trunk@26189 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/doxygen/headers/distributed.h

index f5ff673c460cb317619d9180139329ced9bf3ac1..93830f4e6abb3c67337c7d1fc2749d3417b234f6 100644 (file)
  * information is provided by the
  * DoFTools::extract_locally_relevant_dofs() function.
  *
+ * <h5>Vectors with Ghost-elements</h5>
+ * 
+ * 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=.
  *
  * <h5>Sparsity patterns</h5>
  *

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.