From: David Wells Date: Fri, 4 May 2018 02:28:56 +0000 (-0400) Subject: Remove explicit manifold usage in step-18. X-Git-Tag: v9.0.0-rc1~18^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6445%2Fhead;p=dealii.git Remove explicit manifold usage in step-18. --- diff --git a/examples/step-18/step-18.cc b/examples/step-18/step-18.cc index d39dab7ea0..ca443dff8e 100644 --- a/examples/step-18/step-18.cc +++ b/examples/step-18/step-18.cc @@ -819,31 +819,9 @@ namespace Step18 cell->face(f)->set_boundary_id (3); } - // In order to make sure that new vertices are placed correctly on - // mesh refinement, we have to associate objects describing those - // parts of the boundary that do not consist of straight - // parts. Corresponding to the cylinder shell generator function - // used above, there are classes that can be used to describe the - // geometry of cylinders. The library implements both boundary - // classes as well as manifold classes, where also the interior - // part of mesh is refined according to the geometrical - // description. For this example, we use a single cylindrical - // manifold both for the interior part and for the boundary - // parts. Note that the manifold object need to live as long as - // the triangulation does; we can achieve this by making the - // objects static, which means that they live as long as the - // program runs: - static const CylindricalManifold cylindrical_manifold (2); - - // We tell the triangulation to reset all its manifold indicators - // to 0, and then attach the cylindrical manifold to it: - triangulation.set_all_manifold_ids(0); - triangulation.set_manifold (0, cylindrical_manifold); - // Once all this is done, we can refine the mesh once globally: triangulation.refine_global (1); - // As the final step, we need to set up a clean state of the data that we // store in the quadrature points on all cells that are treated on the // present processor.