]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix test
authorTimo Heister <timo.heister@gmail.com>
Tue, 11 Jun 2013 17:17:10 +0000 (17:17 +0000)
committerTimo Heister <timo.heister@gmail.com>
Tue, 11 Jun 2013 17:17:10 +0000 (17:17 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_unify_linear_algebra@29810 0785d39b-7218-0410-832d-ea1e28bc413d

tests/gla/mat_03.cc
tests/gla/mat_03/ncpu_2/cmp/generic

index 057bb26b9586c8525b95f523bdd8e1a046489315..e8afa813554b963f6c6f3f85171ba5361e86c57c 100644 (file)
@@ -13,6 +13,7 @@
 
 
 // document bug in assembling a LA::MPI::SparseMatrix
+// this was due to handing a wrong IndexSet to the ConstraintMatrix
 
 #include "../tests.h"
 #include <deal.II/lac/generic_linear_algebra.h>
@@ -68,7 +69,9 @@ void test ()
   IndexSet relevant;
   DoFTools::extract_locally_relevant_dofs (dof_handler, relevant);
 
-  CompressedSimpleSparsityPattern sp (owned);
+  // this causes a crash in PETSc, but is ignored in Trilinos:
+  //CompressedSimpleSparsityPattern sp (owned);
+  CompressedSimpleSparsityPattern sp (relevant);
   typename LA::MPI::SparseMatrix matrix;
   DoFTools::make_sparsity_pattern (dof_handler, sp,
                                        cm, false,
@@ -107,6 +110,11 @@ void test ()
 
   matrix.compress(VectorOperation::add);
 
+  if (myid==0)
+    {
+      deallog << matrix(21,39) << std::endl;
+    }
+
                                   // done
   if (myid==0)
     deallog << "OK" << std::endl;
index 2f892b4d094a43cb7ee08cbb7f7eb2b04a93f14d..a38c05ebcbdef105da394c576fdf51f3646af661 100644 (file)
@@ -1,15 +1,9 @@
 
-DEAL:0:PETSc::numproc=4
-DEAL:0:PETSc::(0,0) = 0.00000
-DEAL:0:PETSc::(1,1) = 5.20000
+DEAL:0:PETSc::numproc=2
+DEAL:0:PETSc::101.000
 DEAL:0:PETSc::OK
-DEAL:0:Trilinos::numproc=4
-DEAL:0:Trilinos::(0,0) = 0.00000
-DEAL:0:Trilinos::(1,1) = 5.20000
+DEAL:0:Trilinos::numproc=2
+DEAL:0:Trilinos::101.000
 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


Typeset in Trocchi and Trocchi Bold Sans Serif.