From 482242cfdf790b0b744ffe20f80696f60174c903 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sat, 24 Jan 2015 22:39:51 -0600 Subject: [PATCH] Fix a test. --- tests/deal.II/grid_hyper_shell.cc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tests/deal.II/grid_hyper_shell.cc b/tests/deal.II/grid_hyper_shell.cc index 2e6ac5419d..13cb5caf7d 100644 --- a/tests/deal.II/grid_hyper_shell.cc +++ b/tests/deal.II/grid_hyper_shell.cc @@ -1,6 +1,6 @@ // --------------------------------------------------------------------- // -// Copyright (C) 2007 - 2014 by the deal.II authors +// Copyright (C) 2007 - 2015 by the deal.II authors // // This file is part of the deal.II library. // @@ -44,7 +44,19 @@ void check (double r1, double r2, unsigned int n) Point center; Triangulation tria (Triangulation::none, true); + + // create a hyper shell. before a bug fix in early 2015, the coloring would + // only set the boundary indicators of the faces, not of the edges in + // 3d. the test was written in a way that it tests with this bug present, so + // undo the big fix here GridGenerator::hyper_shell (tria, center, r1, r2, n, true); + if (dim==3) + for (typename Triangulation::active_cell_iterator c=tria.begin_active(); c!=tria.end(); ++c) + for (unsigned int f=0; f::faces_per_cell; ++f) + if (c->face(f)->at_boundary()) + for (unsigned int e=0; e::lines_per_face; ++e) + c->face(f)->line(e)->set_boundary_indicator(0); + static const HyperShellBoundary boundary(center); tria.set_boundary(0, boundary); -- 2.39.5