]> https://gitweb.dealii.org/ - dealii.git/commitdiff
explain calling of compress() in step-40.
authorLei Qiao <qiaol618@gmail.com>
Mon, 13 Apr 2015 03:29:24 +0000 (22:29 -0500)
committerLei Qiao <qiaol618@gmail.com>
Mon, 13 Apr 2015 03:29:24 +0000 (22:29 -0500)
examples/step-40/step-40.cc

index e03278ce6575199e55c9442b02b51d8e389da4cf..1d57447e9c424edc88a42e6471417acb43f47367 100644 (file)
@@ -419,6 +419,11 @@ namespace Step40
                                                   system_rhs);
         }
 
+    // Notice that the assembling above is just a local operation. So, to
+    // fomulate the "global" linear system, a synchronization between all
+    // processors is needed. This could be done by invoke the function
+    // compress(). See @ref GlossCompress  "Compressing distributed objects"
+    // for more information on what is compress() designed to do.
     system_matrix.compress (VectorOperation::add);
     system_rhs.compress (VectorOperation::add);
   }

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.