]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Check dynamic_cast in TimeDependent
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 23 Apr 2018 13:58:18 +0000 (15:58 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 23 Apr 2018 21:16:48 +0000 (23:16 +0200)
source/numerics/time_dependent.cc

index a38be6110696436b489fd2a36bc5b2bebb062925..05ecc8a58cc59b38cce9d5b4035bd3ada18522b2 100644 (file)
@@ -1074,7 +1074,7 @@ void TimeStepBase_Tria<dim>::refine_grid (const RefinementData refinement_data)
     {
       Triangulation<dim> *previous_tria
         = dynamic_cast<const TimeStepBase_Tria<dim>*>(previous_timestep)->tria;
-
+      Assert(previous_tria != nullptr, ExcInternalError());
 
       // if we used the dual estimator, we
       // computed the error information on

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.