From: Luca Heltai Date: Tue, 1 May 2018 14:31:39 +0000 (+0200) Subject: Removed statics, fixed some comments. X-Git-Tag: v9.0.0-rc1~33^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afed567bfa7701f67eac9e6b06074dd9a3926bac;p=dealii.git Removed statics, fixed some comments. --- diff --git a/examples/step-54/step-54.cc b/examples/step-54/step-54.cc index dab031bf07..f9bddb613e 100644 --- a/examples/step-54/step-54.cc +++ b/examples/step-54/step-54.cc @@ -258,17 +258,14 @@ namespace Step54 // point that lies on the wire and splits it into two equal arcs // lying between the edge vertices. We first check // that the wires vector contains at least one element and then - // create a boundary object for it. (The object is marked as - // @p static to ensure that it survives past the end of the - // current function, as we want to attach it to the triangulation - // object for later use). + // create a Manifold object for it. // // Once the projector is created, we then assign it to all the parts of // the triangulation with manifold_id = 2: Assert(wires.size() > 0, ExcMessage("I could not find any wire in the CAD file you gave me. Bailing out.")); - static OpenCASCADE::ArclengthProjectionLineManifold<2,3> + OpenCASCADE::ArclengthProjectionLineManifold<2,3> line_projector (wires[0], tolerance); tria.set_manifold(2, line_projector); @@ -285,7 +282,7 @@ namespace Step54 switch (surface_projection_kind) { case NormalProjection: - static OpenCASCADE::NormalProjectionBoundary<2,3> + OpenCASCADE::NormalProjectionBoundary<2,3> normal_projector(bow_surface, tolerance); tria.set_manifold(1,normal_projector); @@ -300,7 +297,7 @@ namespace Step54 // OpenCASCADE::DirectionalProjectionBoundary constructor. In this case, // the projection is done along the y-axis. case DirectionalProjection: - static OpenCASCADE::DirectionalProjectionBoundary<2,3> + OpenCASCADE::DirectionalProjectionBoundary<2,3> directional_projector(bow_surface, Point<3>(0.0,1.0,0.0), tolerance); tria.set_manifold(1,directional_projector); @@ -317,7 +314,7 @@ namespace Step54 // requires a shape (containing at least a face) and a // tolerance. case NormalToMeshProjection: - static OpenCASCADE::NormalToMeshProjectionBoundary<2,3> + OpenCASCADE::NormalToMeshProjectionBoundary<2,3> normal_to_mesh_projector(bow_surface, tolerance); tria.set_manifold(1,normal_to_mesh_projector);