]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Merge pull request #13913 from luca-heltai/cgal-fix-tests
authorMartin Kronbichler <martin.kronbichler@uni-a.de>
Tue, 7 Jun 2022 07:41:12 +0000 (09:41 +0200)
committerGitHub <noreply@github.com>
Tue, 7 Jun 2022 07:41:12 +0000 (09:41 +0200)
Fix input and output of some cgal tests.

1  2 
tests/cgal/cgal_mesh_criteria.cc

index daeca0e6efc341ee10b997a610ab004d25af4f83,75a742cff0a070c057ab93d10f9abbb384a0425f..373b46c86be23a83ae3b9349328698c7d2ac8c5c
@@@ -44,15 -44,16 +44,15 @@@ test(
  {
    CGAL::Surface_mesh<CGALPoint> sm;
    C3t3                          tria;
-   std::ifstream                 input("input_grids/cube.off");
+   std::ifstream                 input(SOURCE_DIR "/input_grids/cube.off");
    input >> sm;
 -  cgal_surface_mesh_to_cgal_triangulation(sm,
 -                                          tria,
 -                                          CGAL::parameters::cell_size = 0.1);
 +  AdditionalData<3> data;
 +  data.cell_size = .1;
 +  cgal_surface_mesh_to_cgal_triangulation(sm, tria, data);
    const unsigned int n_intial_facets = tria.number_of_facets_in_complex();
    tria.clear();
 -  cgal_surface_mesh_to_cgal_triangulation(sm,
 -                                          tria,
 -                                          CGAL::parameters::cell_size = 0.5);
 +  data.cell_size = .5;
 +  cgal_surface_mesh_to_cgal_triangulation(sm, tria, data);
  
    Assert(
      n_intial_facets > tria.number_of_facets_in_complex(),

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.