From 92276da39e0a83f5c403ef0539e7e6dd69671621 Mon Sep 17 00:00:00 2001 From: Sebastian Pauletti Date: Wed, 17 Aug 2011 14:32:46 +0000 Subject: [PATCH] Check of get_boundary_indicators for 1d grids git-svn-id: https://svn.dealii.org/trunk@24109 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/bits/get_boundary_indicators_1d.cc | 34 +++++++++++++++++++ .../get_boundary_indicators_1d/cmp/generic | 3 ++ 2 files changed, 37 insertions(+) create mode 100644 tests/bits/get_boundary_indicators_1d.cc create mode 100644 tests/bits/get_boundary_indicators_1d/cmp/generic diff --git a/tests/bits/get_boundary_indicators_1d.cc b/tests/bits/get_boundary_indicators_1d.cc new file mode 100644 index 0000000000..bb1bce715b --- /dev/null +++ b/tests/bits/get_boundary_indicators_1d.cc @@ -0,0 +1,34 @@ +//---------------------------- get_boundary_indicators_1d.cc --------------------------- +// $Id: testsuite.html 23951 2011-07-20 11:44:09Z bangerth $ +// +// Copyright (C) 2011 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. +// +//---------------------------- get_boundary_indicators_1d.cc --------------------------- + + +#include "../tests.h" +#include +#include + +// Check if Triangulation<1>::get_boundary_indicators() works for 1d grids. + + +int main () +{ + std::ofstream logfile("get_boundary_indicators_1d/output"); + deallog.attach(logfile); + deallog.depth_console(0); + + Triangulation<1> triangulation; + GridGenerator::hyper_cube (triangulation, -1, 1); + const std::vector indicators = triangulation.get_boundary_indicators(); + for (unsigned int i=0; i