From 567c47edab1806c6ac728c333b2c5ec9710e56c7 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Tue, 11 Jun 2013 17:17:10 +0000 Subject: [PATCH] fix test git-svn-id: https://svn.dealii.org/branches/branch_unify_linear_algebra@29810 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/gla/mat_03.cc | 10 +++++++++- tests/gla/mat_03/ncpu_2/cmp/generic | 14 ++++---------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/tests/gla/mat_03.cc b/tests/gla/mat_03.cc index 057bb26b95..e8afa81355 100644 --- a/tests/gla/mat_03.cc +++ b/tests/gla/mat_03.cc @@ -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 @@ -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; diff --git a/tests/gla/mat_03/ncpu_2/cmp/generic b/tests/gla/mat_03/ncpu_2/cmp/generic index 2f892b4d09..a38c05ebcb 100644 --- a/tests/gla/mat_03/ncpu_2/cmp/generic +++ b/tests/gla/mat_03/ncpu_2/cmp/generic @@ -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 - - - - -- 2.39.5