From: Timo Heister Date: Fri, 3 May 2013 14:48:13 +0000 (+0000) Subject: make test fail (bug in Trilinos) X-Git-Tag: v8.0.0~581 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aeb1b1eed177f326fc63a79338f8e27a153d34cc;p=dealii.git make test fail (bug in Trilinos) git-svn-id: https://svn.dealii.org/trunk@29444 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/mpi/trilinos_sparse_matrix_01.cc b/tests/mpi/trilinos_sparse_matrix_01.cc index 8d3b50c0e1..9451a78bef 100644 --- a/tests/mpi/trilinos_sparse_matrix_01.cc +++ b/tests/mpi/trilinos_sparse_matrix_01.cc @@ -12,8 +12,8 @@ //---------------------- trilinos_matvec_01.cc --------------------------- -// Test whether TrilinosWrappers::SparseMatrix::vmult gives same result with -// Trilinos vector and parallel distributed vector +// Test if Add() and Insert work correctly in Trilinos in parallel +// it turns out Trilinos always adds #include "../tests.h" #include @@ -82,7 +82,12 @@ void test () A.set(0, 2, 0.2); } if ((n_procs == 1) || (my_id == 1)) - A.set(2,3, 0.3); + { + A.set(0, 0, 0.1); + A.set(0, 2, 0.2); + A.set(2,3, 0.3); + } + A.compress(VectorOperation::insert);