git-svn-id: https://svn.dealii.org/branches/branch_unify_linear_algebra@29777
0785d39b-7218-0410-832d-
ea1e28bc413d
// create LA::MPI::SparseMatrix where one CPU has no DoFs
-// this is a bug in PETScWrappers right now!
+// this bug got fixed in PETScWrappers in r29776
#include "../tests.h"
#include <deal.II/lac/generic_linear_algebra.h>
mat.set(0,0,0.1);
mat.set(1,1,0.1);
+
+ MPI_Barrier(MPI_COMM_WORLD);
mat.compress(VectorOperation::insert);
-DEAL:0:PETSc::numproc=4
-DEAL:0:PETSc::0: 0
-DEAL:0:PETSc::1: 1.000
-DEAL:0:PETSc::0,1 : 4.000
+DEAL:0:PETSc::numproc=2
+DEAL:0:PETSc::1,1 : 0.100000
+DEAL:0:PETSc::0,1 : 2.00000
DEAL:0:PETSc::OK
-DEAL:0:Trilinos::numproc=4
-DEAL:0:Trilinos::0: 0
-DEAL:0:Trilinos::1: 1.000
-DEAL:0:Trilinos::0,1 : 4.000
+DEAL:0:Trilinos::numproc=2
+DEAL:0:Trilinos::1,1 : 0.100000
+DEAL:0:Trilinos::0,1 : 2.00000
DEAL:0:Trilinos::OK
+
+
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