]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Bug fix.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 18 Aug 1999 13:55:46 +0000 (13:55 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 18 Aug 1999 13:55:46 +0000 (13:55 +0000)
git-svn-id: https://svn.dealii.org/trunk@1713 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/numerics/time_dependent.cc

index 1e34d7e5b70420698382be97f843f9028a060064..d6480fa7146761f3aae30331a858583fad8a9821 100644 (file)
@@ -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

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.