From 84356603d270eb777057a7d3e2447d5c963eb593 Mon Sep 17 00:00:00 2001 From: bangerth Date: Tue, 30 Aug 2011 23:05:34 +0000 Subject: [PATCH] New test. git-svn-id: https://svn.dealii.org/trunk@24220 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/deal.II/vertex_as_face_08.cc | 53 +++++++++++++++++++++ tests/deal.II/vertex_as_face_08/cmp/generic | 5 ++ 2 files changed, 58 insertions(+) create mode 100644 tests/deal.II/vertex_as_face_08.cc create mode 100644 tests/deal.II/vertex_as_face_08/cmp/generic diff --git a/tests/deal.II/vertex_as_face_08.cc b/tests/deal.II/vertex_as_face_08.cc new file mode 100644 index 0000000000..5396375b5e --- /dev/null +++ b/tests/deal.II/vertex_as_face_08.cc @@ -0,0 +1,53 @@ +//---------------------------- vertex_as_face_04.cc --------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2010, 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. +// +//---------------------------- vertex_as_face_04.cc --------------------------- + +// verify that we can do things like cell->face() in 1d as well. here: +// Triangulation::get_boundary_indicators() + + +#include "../tests.h" +#include +#include +#include +#include + +#include + + +template +void test () +{ + Triangulation<1,spacedim> tria; + GridGenerator::hyper_cube (tria); + tria.refine_global (2); + + std::vector + boundary_ids = tria.get_boundary_indicators (); + + for (unsigned int i=0; i (); + test<2> (); + + return 0; +} diff --git a/tests/deal.II/vertex_as_face_08/cmp/generic b/tests/deal.II/vertex_as_face_08/cmp/generic new file mode 100644 index 0000000000..b9aee25a57 --- /dev/null +++ b/tests/deal.II/vertex_as_face_08/cmp/generic @@ -0,0 +1,5 @@ + +DEAL::0 +DEAL::1 +DEAL::0 +DEAL::1 -- 2.39.5