From a7009f28faa130defc51271ee318672a15d36665 Mon Sep 17 00:00:00 2001 From: Lei Qiao Date: Sun, 12 Apr 2015 22:29:24 -0500 Subject: [PATCH] explain calling of compress() in step-40. --- examples/step-40/step-40.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/step-40/step-40.cc b/examples/step-40/step-40.cc index e03278ce65..1d57447e9c 100644 --- a/examples/step-40/step-40.cc +++ b/examples/step-40/step-40.cc @@ -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); } -- 2.39.5