From: kanschat Date: Mon, 24 Jun 2013 13:38:45 +0000 (+0000) Subject: step 39 test works on 4 cpus X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fe04f58a6d173cb1a05f50a84f47cc179820f1a;p=dealii-svn.git step 39 test works on 4 cpus git-svn-id: https://svn.dealii.org/trunk@29877 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/mpi/step-39.cc b/tests/mpi/step-39.cc index 18bae632cb..baf365bb0b 100644 --- a/tests/mpi/step-39.cc +++ b/tests/mpi/step-39.cc @@ -462,6 +462,8 @@ namespace Step39 begin, end, dof_info, info_box, integrator, assembler); + + matrix.compress(VectorOperation::add); } @@ -487,9 +489,19 @@ namespace Step39 MatrixIntegrator integrator; MeshWorker::integration_loop ( - begin, end, + begin, end, dof_info, info_box, integrator, assembler); + + for (unsigned int level=mg_matrix.min_level(); level <= mg_matrix.max_level();++level) + { + mg_matrix[level].compress(VectorOperation::add); + if (level > mg_matrix.min_level()) + { + mg_matrix_dg_up[level].compress(VectorOperation::add); + mg_matrix_dg_down[level].compress(VectorOperation::add); + } + } } @@ -521,6 +533,7 @@ namespace Step39 dof_info, info_box, integrator, assembler); + right_hand_side.compress(VectorOperation::add); right_hand_side *= -1.; }