From 145c1d436b32f3fa06914b95b41c89b650ec0d92 Mon Sep 17 00:00:00 2001 From: wolf Date: Tue, 16 Nov 1999 15:29:40 +0000 Subject: [PATCH] Change some runtime-active Asserts to AssertThrow. git-svn-id: https://svn.dealii.org/trunk@1858 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/source/parameter_handler.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/deal.II/base/source/parameter_handler.cc b/deal.II/base/source/parameter_handler.cc index 11824d821b..e851a40fd6 100644 --- a/deal.II/base/source/parameter_handler.cc +++ b/deal.II/base/source/parameter_handler.cc @@ -414,8 +414,8 @@ long int ParameterHandler::get_integer (const string &entry_string) const { char *endptr; long int i = strtol (s.c_str(), &endptr, 10); // assert there was no error - Assert ((s.c_str()!='\0') || (*endptr == '\0'), - ExcConversionError(s)); + AssertThrow ((s.c_str()!='\0') || (*endptr == '\0'), + ExcConversionError(s)); return i; }; @@ -427,8 +427,8 @@ double ParameterHandler::get_double (const string &entry_string) const { char *endptr; double d = strtod (s.c_str(), &endptr); // assert there was no error - Assert ((s.c_str()!='\0') || (*endptr == '\0'), - ExcConversionError(s)); + AssertThrow ((s.c_str()!='\0') || (*endptr == '\0'), + ExcConversionError(s)); return d; }; @@ -438,7 +438,7 @@ double ParameterHandler::get_double (const string &entry_string) const { bool ParameterHandler::get_bool (const string &entry_string) const { string s = get(entry_string); - Assert ((s=="true") || (s=="false"), ExcConversionError(s)); + AssertThrow ((s=="true") || (s=="false"), ExcConversionError(s)); if (s=="true") return true; else -- 2.39.5