From 7eabb3cdf9fdeb2b3b2eac4629fccfca1f66c905 Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 9 Dec 2010 15:22:17 +0000 Subject: [PATCH] One more test. git-svn-id: https://svn.dealii.org/trunk@22950 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/codim_one/direction_flag_03.cc | 55 +++++++++++++++++++ tests/codim_one/direction_flag_03/cmp/generic | 4 ++ 2 files changed, 59 insertions(+) create mode 100644 tests/codim_one/direction_flag_03.cc create mode 100644 tests/codim_one/direction_flag_03/cmp/generic diff --git a/tests/codim_one/direction_flag_03.cc b/tests/codim_one/direction_flag_03.cc new file mode 100644 index 0000000000..bae8caa03b --- /dev/null +++ b/tests/codim_one/direction_flag_03.cc @@ -0,0 +1,55 @@ +//---------------------------- direction_flag_03.cc --------------------------- +// $Id: bem.cc 22693 2010-11-11 20:11:47Z kanschat $ +// Version: $Name$ +// +// Copyright (C) 2010 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. +// +//---------------------------- direction_flag_03.cc --------------------------- + +// there are no direction flags if dim==spacedim. make sure we always +// get back true in that case + +#include "../tests.h" + +#include +#include +#include +#include +#include + +using namespace std; + + +template +void test () +{ + Triangulation volume_mesh; + GridGenerator::hyper_cube(volume_mesh); + volume_mesh.refine_global(1); + + for (typename Triangulation::active_cell_iterator + cell = volume_mesh.begin_active(); + cell != volume_mesh.end(); ++cell) + Assert (cell->direction_flag() == true, + ExcInternalError()); + + deallog << "OK" << std::endl; +} + + + +int main () +{ + ofstream logfile("direction_flag_03/output"); + deallog.attach(logfile); + deallog.depth_console(0); + + test<1> (); + test<2> (); + test<3> (); +} diff --git a/tests/codim_one/direction_flag_03/cmp/generic b/tests/codim_one/direction_flag_03/cmp/generic new file mode 100644 index 0000000000..fb71de2867 --- /dev/null +++ b/tests/codim_one/direction_flag_03/cmp/generic @@ -0,0 +1,4 @@ + +DEAL::OK +DEAL::OK +DEAL::OK -- 2.39.5