]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add an assertion
authorJean-Paul Pelteret <jppelteret@gmail.com>
Wed, 24 Oct 2018 12:08:51 +0000 (14:08 +0200)
committerDenis Davydov <davydden@gmail.com>
Fri, 26 Oct 2018 21:43:23 +0000 (23:43 +0200)
source/base/incremental_function.cc

index d65d479e9e7565f2b9994f0cccd95bd619eafdca..027424e6d9ccdc3d5426ca671de57d0458d15177 100644 (file)
@@ -36,6 +36,8 @@ namespace Functions
   IncrementalFunction<dim, RangeNumberType>::set_decrement(
     const time_type delta)
   {
+    Assert(delta >= 0.0,
+           ExcMessage("The decrement must be set to a non-negative value."));
     delta_t = delta;
   }
 

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.