From 1fd18c2b043e4b88488124c547a7a19996ec6aab Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Mon, 24 Jun 2013 13:38:45 +0000 Subject: [PATCH] step 39 test works on 4 cpus git-svn-id: https://svn.dealii.org/trunk@29877 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/mpi/step-39.cc | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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.; } -- 2.39.5