From f01aa4e1d59819a331408c635c18dc028d23ec05 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Thu, 20 Jan 2011 08:29:30 +0000 Subject: [PATCH] failing test for constraint_matrix git-svn-id: https://svn.dealii.org/trunk@23221 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/lac/constraints_01.cc | 68 ++++++++++++++++++++++++++++ tests/lac/constraints_01/cmp/generic | 4 ++ 2 files changed, 72 insertions(+) create mode 100644 tests/lac/constraints_01.cc create mode 100644 tests/lac/constraints_01/cmp/generic diff --git a/tests/lac/constraints_01.cc b/tests/lac/constraints_01.cc new file mode 100644 index 0000000000..ca96e08904 --- /dev/null +++ b/tests/lac/constraints_01.cc @@ -0,0 +1,68 @@ +//---------------------------- constraints_zero.cc --------------------------- +// $Id: constraints_zero.cc 18471 2009-03-10 13:20:31Z kronbichler $ +// Version: $Name$ +// +// Copyright (C) 2005, 2006, 2007, 2008 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------- constraints_zero.cc --------------------------- + + + + +#include "../tests.h" +#include +#include + +#include + +// bug in ConstraintMatrix + +//index=18466 line_index=652 lines_cache[line_index]=919940456 lines.size()=21 + +void test () +{ + IndexSet rel; + std::ifstream f("constraints_01/is.23"); + rel.read(f); + + ConstraintMatrix cm; + cm.clear(); + cm.reinit(rel); + + unsigned int inhoms[]={ +8385, 8386, 8391, 17886, 17892, 17895, 18066, 18069, 18072, 18075, 18086, 18089, 18092, 18095, 18138, 18141, 18144, 18147, 18158, 18161, 18164 + }; + + for (unsigned int i=0;i