From: Peter Munch Date: Thu, 16 Apr 2020 15:08:12 +0000 (+0200) Subject: GridTools::exchange_cell_data_to_ghosts replace static_cast by dynamic_cast X-Git-Tag: v9.2.0-rc1~218^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae29f865817b97b00b68861a89236b9f260f3b3a;p=dealii.git GridTools::exchange_cell_data_to_ghosts replace static_cast by dynamic_cast --- diff --git a/include/deal.II/grid/grid_tools.h b/include/deal.II/grid/grid_tools.h index 2794c31270..1729391102 100644 --- a/include/deal.II/grid/grid_tools.h +++ b/include/deal.II/grid/grid_tools.h @@ -3898,8 +3898,9 @@ namespace GridTools # else constexpr int dim = MeshType::dimension; constexpr int spacedim = MeshType::space_dimension; - auto tria = static_cast *>( - &mesh.get_triangulation()); + auto tria = + dynamic_cast *>( + &mesh.get_triangulation()); Assert( tria != nullptr, ExcMessage(