]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make a cast explicit. 6150/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 3 Apr 2018 16:27:08 +0000 (10:27 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 3 Apr 2018 16:27:08 +0000 (10:27 -0600)
This cast appears to be necessary for older GCC versions.

tests/grid/distributed_compute_point_locations_01.cc

index 8633f21be2204be9516de1bda5e0363589585ab4..cf65d62a46f1753b103aaad9f1942a8fc37c4b51 100644 (file)
@@ -53,7 +53,8 @@ void test_compute_pt_loc(unsigned int n_points)
   // Computing the description of the locally owned part of the mesh
   IteratorFilters::LocallyOwnedCell locally_owned_cell_predicate;
   std::vector< BoundingBox<dim> > local_bbox = GridTools::compute_mesh_predicate_bounding_box
-                                               (cache.get_triangulation(), locally_owned_cell_predicate,
+                                               (cache.get_triangulation(),
+                                                std::function<bool (const typename Triangulation<dim>::active_cell_iterator &)>(locally_owned_cell_predicate),
                                                 1, true, 4); // These options should be passed
   // Using the distributed version of compute point location
 

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.