From 885e7b0a3243f18411b82061a2c5df4586711d31 Mon Sep 17 00:00:00 2001 From: kronbichler Date: Wed, 8 Sep 2010 21:05:35 +0000 Subject: [PATCH] Change threshold for zero. git-svn-id: https://svn.dealii.org/trunk@21899 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/umfpack/umfpack_09.cc | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/tests/umfpack/umfpack_09.cc b/tests/umfpack/umfpack_09.cc index 7da1dcb463..f03277a501 100644 --- a/tests/umfpack/umfpack_09.cc +++ b/tests/umfpack/umfpack_09.cc @@ -1,8 +1,8 @@ //---------------------------------------------------------------------- // $Id$ -// Version: $Name$ +// Version: $Name$ // -// Copyright (C) 2002, 2003, 2004, 2005, 2006, 2009 by the deal.II authors +// Copyright (C) 2002, 2003, 2004, 2005, 2006, 2009, 2010 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -44,8 +44,8 @@ template void test () { deallog << dim << 'd' << std::endl; - - Triangulation tria; + + Triangulation tria; GridGenerator::hyper_cube (tria,0,1); tria.refine_global (1); @@ -58,9 +58,9 @@ void test () FE_Q fe (1); DoFHandler dof_handler (tria); dof_handler.distribute_dofs (fe); - + deallog << "Number of dofs = " << dof_handler.n_dofs() << std::endl; - + BlockSparsityPattern sparsity_pattern; sparsity_pattern.reinit (3, 3); for (unsigned int i=0; i<3; ++i) @@ -76,10 +76,10 @@ void test () sparsity_pattern.collect_sizes(); DoFTools::make_sparsity_pattern (dof_handler, sparsity_pattern); sparsity_pattern.compress (); - + BlockSparseMatrix B; - B.reinit (sparsity_pattern); - + B.reinit (sparsity_pattern); + { // for some reason, we can't // create block matrices directly @@ -90,10 +90,10 @@ void test () dof_handler.max_couplings_between_dofs()); DoFTools::make_sparsity_pattern (dof_handler, xsparsity_pattern); xsparsity_pattern.compress (); - + SparseMatrix xB; - xB.reinit (xsparsity_pattern); - + xB.reinit (xsparsity_pattern); + QGauss qr (2); MatrixTools::create_mass_matrix (dof_handler, qr, xB); @@ -118,8 +118,8 @@ void test () for (SparseMatrix::const_iterator i = xB.begin(); i != xB.end(); ++i) B.set (i->row(), i->column(), i->value()); } - - + + // for a number of different solution // vectors, make up a matching rhs vector // and check what the UMFPACK solver finds @@ -163,7 +163,7 @@ int main () std::ofstream logfile("umfpack_09/output"); deallog.attach(logfile); deallog.depth_console(0); - deallog.threshold_double(1.e-9); + deallog.threshold_double(1.e-8); test<1> (); test<2> (); -- 2.39.5