From: Daniel Arndt Date: Mon, 23 Apr 2018 13:58:18 +0000 (+0200) Subject: Check dynamic_cast in TimeDependent X-Git-Tag: v9.0.0-rc1~114^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d68052c795d0acae54e64cb1f368d18bb33f154;p=dealii.git Check dynamic_cast in TimeDependent --- diff --git a/source/numerics/time_dependent.cc b/source/numerics/time_dependent.cc index a38be61106..05ecc8a58c 100644 --- a/source/numerics/time_dependent.cc +++ b/source/numerics/time_dependent.cc @@ -1074,7 +1074,7 @@ void TimeStepBase_Tria::refine_grid (const RefinementData refinement_data) { Triangulation *previous_tria = dynamic_cast*>(previous_timestep)->tria; - + Assert(previous_tria != nullptr, ExcInternalError()); // if we used the dual estimator, we // computed the error information on