From f340d1d4d68c0ad2295b8941e55bdaef186750d7 Mon Sep 17 00:00:00 2001 From: wolf Date: Sat, 19 Jun 2004 22:19:56 +0000 Subject: [PATCH] New test git-svn-id: https://svn.dealii.org/trunk@9435 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/bits/sparsity_pattern_01.cc | 51 +++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 tests/bits/sparsity_pattern_01.cc diff --git a/tests/bits/sparsity_pattern_01.cc b/tests/bits/sparsity_pattern_01.cc new file mode 100644 index 0000000000..76e1d24bce --- /dev/null +++ b/tests/bits/sparsity_pattern_01.cc @@ -0,0 +1,51 @@ +//---------------------------- sparsity_pattern_01.cc --------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2004 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. +// +//---------------------------- sparsity_pattern_01.cc --------------------------- + + +// check SparsityPattern::copy_from(CompressedSparsityPattern) + +#include "../tests.h" +#include +#include +#include +#include +#include + + +void test () +{ + const unsigned int N = 100; + CompressedSparsityPattern csp (N,N); + for (unsigned int i=0; i