]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Switch a few OC tests to use new manifold names. 6583/head
authorDavid Wells <drwells@vt.edu>
Wed, 16 May 2018 22:12:25 +0000 (18:12 -0400)
committerDavid Wells <drwells@vt.edu>
Wed, 16 May 2018 22:18:45 +0000 (18:18 -0400)
The old versions of these classes are implemented by inheriting from
their replacements, so if tests pass with old names then they should
pass with new names. To be sure, though, convert a few of the tests to
use the new names.

tests/opencascade/circle_normal_projection.cc
tests/opencascade/project_center_cell_02.cc
tests/opencascade/project_center_cell_03.cc

index 32ffcce96626cbff4ef4c6dcc9425ffede678b99..ce928e84c9df3d40267268e49ab3ea7482ad5d1f 100644 (file)
@@ -19,7 +19,7 @@
 
 #include "../tests.h"
 
-#include <deal.II/opencascade/boundary_lib.h>
+#include <deal.II/opencascade/manifold_lib.h>
 
 #include <deal.II/grid/tria.h>
 #include <deal.II/grid/tria_accessor.h>
@@ -58,7 +58,7 @@ int main ()
   TopoDS_Edge edge = BRepBuilderAPI_MakeEdge(circle);
 
   // Create a boundary projector.
-  NormalProjectionBoundary<2,3> boundary_line(edge);
+  NormalProjectionManifold<2,3> boundary_line(edge);
 
   // This one is for checking: This
   // is what deal.II would do for a
index 26221876276ed6dedb78ee8962ec59cd52d4593b..ee7cfde84ac0e153108edd65aec26ff3e709d601 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "../tests.h"
 
-#include <deal.II/opencascade/boundary_lib.h>
+#include <deal.II/opencascade/manifold_lib.h>
 
 #include <deal.II/grid/tria.h>
 #include <deal.II/grid/tria_accessor.h>
@@ -57,14 +57,14 @@ int main ()
 
 
   // Create a boundary projector on the first face.
-  DirectionalProjectionBoundary<2,3> boundary(faces[0], Point<3>(0.,1.,0.));
+  DirectionalProjectionManifold<2,3> manifold(faces[0], Point<3>(0.,1.,0.));
 
   // Create a Triangulation with a single cell
   Triangulation<2,3> tria;
   create_triangulation(faces[0], tria);
 
-  // Set the boundary
-  tria.set_manifold(1, boundary);
+  // Set the manifold
+  tria.set_manifold(1, manifold);
   tria.begin()->set_all_manifold_ids(1);
 
   deallog << "Ncells: " << tria.n_active_cells() << std::endl
index 8bd5fb296a5c8245d94a44434307199c30853d0a..b91668cb32112fab64538c084149e2dec41e01ff 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "../tests.h"
 
-#include <deal.II/opencascade/boundary_lib.h>
+#include <deal.II/opencascade/manifold_lib.h>
 
 #include <deal.II/grid/tria.h>
 #include <deal.II/grid/tria_accessor.h>
@@ -56,15 +56,15 @@ int main ()
   extract_geometrical_shapes(sh, faces, edges, vertices);
 
 
-  // Create a boundary projector on the first face.
-  NormalToMeshProjectionBoundary<2,3> boundary(faces[0]);
+  // Create a manifold projector on the first face.
+  NormalToMeshProjectionManifold<2,3> manifold(faces[0]);
 
   // Create a Triangulation with a single cell
   Triangulation<2,3> tria;
   create_triangulation(faces[0], tria);
 
-  // Set the boundary
-  tria.set_manifold(1, boundary);
+  // Set the manifold
+  tria.set_manifold(1, manifold);
   tria.begin()->set_all_manifold_ids(1);
 
   deallog << "Ncells: " << tria.n_active_cells() << std::endl

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.