From af5cdd65c20975f4cbf18ebe2eb4d6ecbc4417d9 Mon Sep 17 00:00:00 2001 From: David Wells Date: Tue, 6 Aug 2019 16:56:49 -0600 Subject: [PATCH] Avoid deprecated features in step-54. --- examples/step-54/step-54.cc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/examples/step-54/step-54.cc b/examples/step-54/step-54.cc index 73c6e831a2..9e4ee625d2 100644 --- a/examples/step-54/step-54.cc +++ b/examples/step-54/step-54.cc @@ -36,7 +36,7 @@ // specifying -DDEAL_II_WITH_OPENCASCADE=ON and // -DOPENCASCADE_DIR=/path/to/your/opencascade/installation // when calling cmake during deal.II configuration. -#include +#include #include @@ -262,17 +262,17 @@ namespace Step54 // The surface projector is created according to what is specified // with the @p surface_projection_kind option of the constructor. In particular, // if the surface_projection_kind value equals @p NormalProjection, we select the - // OpenCASCADE::NormalProjectionBoundary. The new mesh points will + // OpenCASCADE::NormalProjectionManifold. The new mesh points will // then initially be generated at the barycenter of the cell/edge // considered, and then projected on the CAD surface along its - // normal direction. The NormalProjectionBoundary constructor + // normal direction. The NormalProjectionManifold constructor // only needs a shape and a tolerance, and we then assign it to // the triangulation for use with all parts that manifold having id 1: switch (surface_projection_kind) { case NormalProjection: { - OpenCASCADE::NormalProjectionBoundary<2, 3> normal_projector( + OpenCASCADE::NormalProjectionManifold<2, 3> normal_projector( bow_surface, tolerance); tria.set_manifold(1, normal_projector); @@ -280,15 +280,15 @@ namespace Step54 } // @p If surface_projection_kind value is @p DirectionalProjection, we select the - // OpenCASCADE::DirectionalProjectionBoundary class. The new mesh points + // OpenCASCADE::DirectionalProjectionManifold class. The new mesh points // will then initially be generated at the barycenter of the cell/edge // considered, and then projected on the CAD surface along a // direction that is specified to the - // OpenCASCADE::DirectionalProjectionBoundary constructor. In this case, + // OpenCASCADE::DirectionalProjectionManifold constructor. In this case, // the projection is done along the y-axis. case DirectionalProjection: { - OpenCASCADE::DirectionalProjectionBoundary<2, 3> + OpenCASCADE::DirectionalProjectionManifold<2, 3> directional_projector(bow_surface, Point<3>(0.0, 1.0, 0.0), tolerance); @@ -299,16 +299,16 @@ namespace Step54 // As a third option, if @p surface_projection_kind value // is @p NormalToMeshProjection, we select the - // OpenCASCADE::NormalToMeshProjectionBoundary. The new mesh points will + // OpenCASCADE::NormalToMeshProjectionManifold. The new mesh points will // again initially be generated at the barycenter of the cell/edge // considered, and then projected on the CAD surface along a // direction that is an estimate of the mesh normal direction. - // The OpenCASCADE::NormalToMeshProjectionBoundary constructor only + // The OpenCASCADE::NormalToMeshProjectionManifold constructor only // requires a shape (containing at least a face) and a // tolerance. case NormalToMeshProjection: { - OpenCASCADE::NormalToMeshProjectionBoundary<2, 3> + OpenCASCADE::NormalToMeshProjectionManifold<2, 3> normal_to_mesh_projector(bow_surface, tolerance); tria.set_manifold(1, normal_to_mesh_projector); -- 2.39.5