From: Jean-Paul Pelteret Date: Wed, 24 Oct 2018 12:08:51 +0000 (+0200) Subject: Add an assertion X-Git-Tag: v9.1.0-rc1~588^2~6 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=207ba9c7e76d2f3f4b35261417207f91800ea239;p=dealii.git Add an assertion --- diff --git a/source/base/incremental_function.cc b/source/base/incremental_function.cc index d65d479e9e..027424e6d9 100644 --- a/source/base/incremental_function.cc +++ b/source/base/incremental_function.cc @@ -36,6 +36,8 @@ namespace Functions IncrementalFunction::set_decrement( const time_type delta) { + Assert(delta >= 0.0, + ExcMessage("The decrement must be set to a non-negative value.")); delta_t = delta; }