From ae29f865817b97b00b68861a89236b9f260f3b3a Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Thu, 16 Apr 2020 17:08:12 +0200 Subject: [PATCH] GridTools::exchange_cell_data_to_ghosts replace static_cast by dynamic_cast --- include/deal.II/grid/grid_tools.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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( -- 2.39.5