]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Improve the wording of an exception. 4086/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sun, 19 Mar 2017 21:28:08 +0000 (15:28 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sun, 19 Mar 2017 21:28:08 +0000 (15:28 -0600)
include/deal.II/grid/grid_generator.h
source/grid/grid_generator.cc

index c01be97c8435274e2394a992ddac7fa6669d4ee7..f3f33995f104a955815dadc24b87d5a5f0828ad6 100644 (file)
@@ -1207,7 +1207,7 @@ namespace GridGenerator
   DeclException1 (ExcInvalidRepetitionsDimension,
                   int,
                   << "The vector of repetitions  must have "
-                  << arg1 <<" elements.");
+                  << arg1 << " elements.");
 
   /**
    * Exception for input that is not properly oriented.
index 663bfacb5203abcde06a59be9e203c188dc476b4..18bf421b301ae67c5783a27002533628491e3131 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 1999 - 2016 by the deal.II authors
+// Copyright (C) 1999 - 2017 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -1310,7 +1310,10 @@ namespace GridGenerator
         for (unsigned int j=0; j<step_sizes.at(i).size(); j++)
           x += step_sizes[i][j];
         Assert(std::fabs(x - (p2(i)-p1(i))) <= 1e-12*std::fabs(x),
-               ExcInvalidRepetitions (i) );
+               ExcMessage ("The sequence of step sizes in coordinate direction " +
+                           Utilities::int_to_string(i) +
+                           " must be equal to the distance of the two given "
+                           "points in this coordinate direction."));
       }
 
 

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.