From bd486a1815e134651f37c51690d3a68f429099df Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 30 Aug 2011 23:55:09 +0000 Subject: [PATCH] New test. git-svn-id: https://svn.dealii.org/trunk@24223 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/deal.II/vertex_as_face_09.cc | 54 +++++++++++++++++++++ tests/deal.II/vertex_as_face_09/cmp/generic | 3 ++ 2 files changed, 57 insertions(+) create mode 100644 tests/deal.II/vertex_as_face_09.cc create mode 100644 tests/deal.II/vertex_as_face_09/cmp/generic diff --git a/tests/deal.II/vertex_as_face_09.cc b/tests/deal.II/vertex_as_face_09.cc new file mode 100644 index 0000000000..c68c1c752e --- /dev/null +++ b/tests/deal.II/vertex_as_face_09.cc @@ -0,0 +1,54 @@ +//---------------------------- vertex_as_face_09.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_09.cc --------------------------- + +// verify that we can do things like cell->face() in 1d as well. here: +// Triangulation::get_boundary_indicators() should return an empty vector when +// called to create a mesh that is a loop + + +#include "../tests.h" +#include +#include +#include +#include +#include + +#include + + +void test () +{ + Triangulation<2,2> volume_mesh; + GridGenerator::hyper_cube (volume_mesh); + + Triangulation<1,2> tria; + + GridTools::extract_boundary_mesh (volume_mesh, tria); + + deallog << "n_cells = " << tria.n_active_cells() << std::endl; + deallog << "n_boundary_ids = " << tria.get_boundary_indicators ().size() + << std::endl; +} + + + +int main () +{ + std::ofstream logfile("vertex_as_face_09/output"); + deallog.attach(logfile); + deallog.depth_console(0); + + test (); + + return 0; +} diff --git a/tests/deal.II/vertex_as_face_09/cmp/generic b/tests/deal.II/vertex_as_face_09/cmp/generic new file mode 100644 index 0000000000..b64039c987 --- /dev/null +++ b/tests/deal.II/vertex_as_face_09/cmp/generic @@ -0,0 +1,3 @@ + +DEAL::n_cells = 4 +DEAL::n_boundary_ids = 0 -- 2.39.5