From ad46e0f2cf35f10cea4062445bc17d59fb60d4d4 Mon Sep 17 00:00:00 2001 From: bangerth Date: Fri, 9 Oct 2009 21:56:14 +0000 Subject: [PATCH] New class IndexSet. git-svn-id: https://svn.dealii.org/trunk@19788 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/base/Makefile | 1 + tests/base/index_set_01.cc | 51 +++++++++++++++++++ tests/base/index_set_01/cmp/generic | 21 ++++++++ .../cmp/powerpc-apple-darwin8.10.0+gcc4.0 | 9 ++++ .../cmp/powerpc-apple-darwin8.8.0+gcc4.0 | 9 ++++ 5 files changed, 91 insertions(+) create mode 100644 tests/base/index_set_01.cc create mode 100644 tests/base/index_set_01/cmp/generic create mode 100644 tests/base/index_set_01/cmp/powerpc-apple-darwin8.10.0+gcc4.0 create mode 100644 tests/base/index_set_01/cmp/powerpc-apple-darwin8.8.0+gcc4.0 diff --git a/tests/base/Makefile b/tests/base/Makefile index 4ccae89d94..977542d9d2 100644 --- a/tests/base/Makefile +++ b/tests/base/Makefile @@ -72,6 +72,7 @@ tests_x = geometry_info_* \ table \ tensor \ tensor_* \ + index_set_* \ symmetric_tensor_* \ full_tensor_* \ timer \ diff --git a/tests/base/index_set_01.cc b/tests/base/index_set_01.cc new file mode 100644 index 0000000000..afb74844dd --- /dev/null +++ b/tests/base/index_set_01.cc @@ -0,0 +1,51 @@ +//----------------------------------------------------------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2009 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. +// +//----------------------------------------------------------------------------- + +// test functions in namespace Utilities + +#include "../tests.h" +#include +#include +#include +#include + +#include + + +void test () +{ + IndexSet index_set (20); + index_set.add_range (2,4); + index_set.add_range (12,18); + index_set.add_index (6); + index_set.add_index (8); + index_set.add_index (14); + index_set.add_index (16); + + for (unsigned int i=0; i