]> https://gitweb.dealii.org/ - dealii.git/commitdiff
make test fail (bug in Trilinos)
authorTimo Heister <timo.heister@gmail.com>
Fri, 3 May 2013 14:48:13 +0000 (14:48 +0000)
committerTimo Heister <timo.heister@gmail.com>
Fri, 3 May 2013 14:48:13 +0000 (14:48 +0000)
git-svn-id: https://svn.dealii.org/trunk@29444 0785d39b-7218-0410-832d-ea1e28bc413d

tests/mpi/trilinos_sparse_matrix_01.cc

index 8d3b50c0e1043109642f05a51cf51dab89b83432..9451a78bef6061a2f2872c56b062ca7c9c59a645 100644 (file)
@@ -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 <deal.II/base/utilities.h>
@@ -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);
   

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.