From: wolf Date: Wed, 18 Aug 1999 13:55:46 +0000 (+0000) Subject: Bug fix. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d7e90ffaab2451f474f05eded4aee8d6b48fda9;p=dealii-svn.git Bug fix. git-svn-id: https://svn.dealii.org/trunk@1713 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/numerics/time_dependent.cc b/deal.II/deal.II/source/numerics/time_dependent.cc index 1e34d7e5b7..d6480fa714 100644 --- a/deal.II/deal.II/source/numerics/time_dependent.cc +++ b/deal.II/deal.II/source/numerics/time_dependent.cc @@ -46,7 +46,8 @@ void TimeDependent::insert_timestep (const TimeStepBase *position, TimeStepBase *new_timestep) { - Assert (find(timesteps.begin(), timesteps.end(), position) != timesteps.end(), + Assert ((find(timesteps.begin(), timesteps.end(), position) != timesteps.end()) || + (position == 0), ExcInvalidPosition()); // lock this timestep from deletion