]> https://gitweb.dealii.org/ - dealii.git/commitdiff
step 39 test works on 4 cpus
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Mon, 24 Jun 2013 13:38:45 +0000 (13:38 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Mon, 24 Jun 2013 13:38:45 +0000 (13:38 +0000)
git-svn-id: https://svn.dealii.org/trunk@29877 0785d39b-7218-0410-832d-ea1e28bc413d

tests/mpi/step-39.cc

index 18bae632cb0e99fd5c1ec414b2ab08c816c12e4e..baf365bb0b1f71a0ba4a0c4bc5f1d2047f0d0c7f 100644 (file)
@@ -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<dim> integrator;
     MeshWorker::integration_loop<dim, dim> (
-                                           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.;
   }
 

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.