From 543a39d4258ad67263d2169dcdfdf2126dc9ede4 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Fri, 13 Mar 2015 13:48:34 +0100 Subject: [PATCH] Make sure to call compress() in test --- tests/trilinos/assemble_matrix_parallel_01.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/trilinos/assemble_matrix_parallel_01.cc b/tests/trilinos/assemble_matrix_parallel_01.cc index 55d9826653..bfd309c229 100644 --- a/tests/trilinos/assemble_matrix_parallel_01.cc +++ b/tests/trilinos/assemble_matrix_parallel_01.cc @@ -340,6 +340,8 @@ void LaplaceProblem::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::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); -- 2.39.5