From: Timo Heister Date: Wed, 26 Aug 2015 13:01:42 +0000 (-0400) Subject: fix compilation error in compute_ghost_cell_halo_layer X-Git-Tag: v8.4.0-rc2~543^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1437%2Fhead;p=dealii.git fix compilation error in compute_ghost_cell_halo_layer Fix the following compilation error on my machine (gcc 4.6.3) /ssd/deal-git/source/grid/grid_tools.cc:1581:103: error: no matching function for call to ‘compute_active_cell_halo_layer(const dealii::Triangulation<1, 1>&, dealii::IteratorFilters::LocallyOwnedCell)’ /ssd/deal-git/source/grid/grid_tools.cc:1581:103: note: candidate is: /ssd/deal-git/source/grid/grid_tools.cc:1540:3: note: template std::vector dealii::GridTools::compute_active_cell_halo_layer(const Container&, const std::function&) --- diff --git a/source/grid/grid_tools.cc b/source/grid/grid_tools.cc index 48cc49d8db..e171b079a1 100644 --- a/source/grid/grid_tools.cc +++ b/source/grid/grid_tools.cc @@ -1577,8 +1577,11 @@ next_cell: std::vector compute_ghost_cell_halo_layer (const Container &container) { + std_cxx11::function predicate + = IteratorFilters::LocallyOwnedCell(); + const std::vector - active_halo_layer = compute_active_cell_halo_layer (container, IteratorFilters::LocallyOwnedCell()); + active_halo_layer = compute_active_cell_halo_layer (container, predicate); // Check that we never return locally owned or artificial cells // What is left should only be the ghost cells