From: Niklas Fehn Date: Fri, 18 Oct 2019 14:31:59 +0000 (+0200) Subject: minor changes X-Git-Tag: v9.2.0-rc1~967^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20f131f20cfe477e162501d34fece92307858667;p=dealii.git minor changes --- diff --git a/source/base/data_out_base.cc b/source/base/data_out_base.cc index 666acafb9c..57248a476b 100644 --- a/source/base/data_out_base.cc +++ b/source/base/data_out_base.cc @@ -7560,7 +7560,7 @@ DataOutInterface::write_vtu_with_pvtu_record( const unsigned int n_files_written = (n_groups == 0 || n_groups > n_ranks) ? n_ranks : n_groups; - AssertThrow(n_files_written >= 1, ExcMessage("Logical error.")); + Assert(n_files_written >= 1, ExcInternalError()); // the "-1" is needed since we use C++ style counting starting with 0, so // writing 10 files means the filename runs from 0 to 9 const unsigned int n_digits = diff --git a/source/base/utilities.cc b/source/base/utilities.cc index 3f3a31cd70..2ad59b0000 100644 --- a/source/base/utilities.cc +++ b/source/base/utilities.cc @@ -469,8 +469,6 @@ namespace Utilities if (max_number > 0) return static_cast( std::ceil(std::log10(std::fabs(max_number + 0.1)))); - else - return 1; return 1; }