]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make sure to call compress() in test 662/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 13 Mar 2015 12:48:34 +0000 (13:48 +0100)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 13 Mar 2015 12:49:09 +0000 (13:49 +0100)
tests/trilinos/assemble_matrix_parallel_01.cc

index 55d9826653c0544e9ab196c357b7e6a97c8de893..bfd309c229f491c16c958a39bcf08fd5c3b42dba 100644 (file)
@@ -340,6 +340,8 @@ void LaplaceProblem<dim>::assemble_reference ()
         local_assemble(*p, assembly_data, copy_data);
         copy_local_to_global(copy_data);
       }
+  test_matrix.compress(VectorOperation::add);
+  test_rhs.compress(VectorOperation::add);
 
   reference_matrix.add(1., test_matrix);
   reference_rhs = test_rhs;
@@ -369,6 +371,8 @@ void LaplaceProblem<dim>::assemble_test ()
          Assembly::Copy::Data (),
          2*MultithreadInfo::n_threads(),
          1);
+  test_matrix.compress(VectorOperation::add);
+  test_rhs.compress(VectorOperation::add);
 
   test_matrix.add(-1, reference_matrix);
 

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.