]> https://gitweb.dealii.org/ - dealii.git/commitdiff
One more check.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 10 Feb 2006 21:57:07 +0000 (21:57 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 10 Feb 2006 21:57:07 +0000 (21:57 +0000)
git-svn-id: https://svn.dealii.org/trunk@12307 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/grid_generator.cc

index 3e0695fd8c4fd90906abaeb2d33fb2d1420eb8fd..0b357817d5b85c18b4a1249b4a16207d16999531 100644 (file)
@@ -183,6 +183,8 @@ GridGenerator::subdivided_hyper_cube (Triangulation<dim> &tria,
                                       const double        right)
 {
   Assert (repetitions >= 1, ExcInvalidRepetitions(repetitions));
+  Assert (left < right,
+         ExcMessage ("Invalid left and right bounds of hypercube"));
   
                                    // first generate the necessary
                                    // points

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.