]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid setting boundary objects that don't fit. 1060/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 29 Jun 2015 23:01:11 +0000 (18:01 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 29 Jun 2015 23:07:17 +0000 (18:07 -0500)
This test set a hyperball boundary for the flat part of a half-hypersphere.

tests/codim_one/transform_01.cc

index d4153aea219daa59106c8724b8dcfc6966d25b22..f8e67c379211797bd4a46e8fc93b2515600a4b2b 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2010 - 2014 by the deal.II authors
+// Copyright (C) 2010 - 2015 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -63,12 +63,10 @@ int main ()
   Triangulation<3> volume_mesh;
   GridGenerator::half_hyper_ball(volume_mesh);
 
-  volume_mesh.set_boundary (1, boundary_description);
   volume_mesh.set_boundary (0, boundary_description);
   volume_mesh.refine_global (3);
 
   static HyperBallBoundary<3-1,3> surface_description;
-  triangulation.set_boundary (1, surface_description);
   triangulation.set_boundary (0, surface_description);
 
   std::set<types::boundary_id> boundary_ids;
@@ -76,7 +74,6 @@ int main ()
 
   GridGenerator::extract_boundary_mesh (volume_mesh, triangulation,
                                     boundary_ids);
-  triangulation.set_boundary (1);
   triangulation.set_boundary (0);
   GridTools::transform (&warp<3>, triangulation);
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.