]> https://gitweb.dealii.org/ - dealii.git/commitdiff
minor changes 8924/head
authorNiklas Fehn <fehn@lnm.mw.tum.de>
Fri, 18 Oct 2019 14:31:59 +0000 (16:31 +0200)
committerNiklas Fehn <fehn@lnm.mw.tum.de>
Fri, 18 Oct 2019 14:31:59 +0000 (16:31 +0200)
source/base/data_out_base.cc
source/base/utilities.cc

index 666acafb9cf8f61054c8d068a820ec955d8c280f..57248a476b7a93e8fd2282ad0db33c1528470ad5 100644 (file)
@@ -7560,7 +7560,7 @@ DataOutInterface<dim, spacedim>::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 =
index 3f3a31cd705c84c365a8ca3daba8294047846236..2ad59b00008e980f5d102cb392fd842de38bc274 100644 (file)
@@ -469,8 +469,6 @@ namespace Utilities
     if (max_number > 0)
       return static_cast<int>(
         std::ceil(std::log10(std::fabs(max_number + 0.1))));
-    else
-      return 1;
 
     return 1;
   }

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.