From: pauletti Date: Wed, 17 Aug 2011 14:32:46 +0000 (+0000) Subject: Check of get_boundary_indicators for 1d grids X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb81930887dc9765de782376cf3efbda5687e907;p=dealii-svn.git Check of get_boundary_indicators for 1d grids git-svn-id: https://svn.dealii.org/trunk@24109 0785d39b-7218-0410-832d-ea1e28bc413d --- 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