From: Wolfgang Bangerth Date: Sun, 25 Jan 2015 04:39:51 +0000 (-0600) Subject: Fix a test. X-Git-Tag: v8.3.0-rc1~517^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=482242cfdf790b0b744ffe20f80696f60174c903;p=dealii.git Fix a test. --- 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);