From f0e2f360b9414f711f94f070533e0db8a3038be5 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Mon, 25 Feb 2013 21:18:53 +0000 Subject: [PATCH] extend glossary about compress() git-svn-id: https://svn.dealii.org/trunk@28559 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/doc/doxygen/headers/glossary.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/deal.II/doc/doxygen/headers/glossary.h b/deal.II/doc/doxygen/headers/glossary.h index 2c100e538b..35f4ff9d20 100644 --- a/deal.II/doc/doxygen/headers/glossary.h +++ b/deal.II/doc/doxygen/headers/glossary.h @@ -565,6 +565,22 @@ * Some of the objects are also indifferent and can figure out what to * do without being told. The TrilinosWrappers::SparseMatrix can do that, * for example. + * + * In short, you need to call compress() in the following cases (and + * only in those cases, though calling compress() in other cases + * just costs some performance): + * + * 1. At the end of your assembly loop on matrices and vectors. This needs to + * be done if you write entries directly and if you use + * ConstraintMatrix::distribute_local_to_global. Use VectorOperation::add. + * + * 2. When you are done setting individual elements in a matrix/vector before + * any other operations are done (adding to elements, other operations like + * scaling, solving, reading, etc.). Use VectorOperation::insert. + * + * 3. Like in 2., but for adding values to individual elements. Use + * VectorOperation::add. + * * * * -- 2.39.5