]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Check that left bound < right bound for hyper_cube.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 10 Feb 2006 21:56:17 +0000 (21:56 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 10 Feb 2006 21:56:17 +0000 (21:56 +0000)
git-svn-id: https://svn.dealii.org/trunk@12306 0785d39b-7218-0410-832d-ea1e28bc413d

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

index b456408dea37f2358bff8bb18c310b1379ac2e29..3e0695fd8c4fd90906abaeb2d33fb2d1420eb8fd 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors
+//    Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -131,6 +131,9 @@ void GridGenerator::hyper_cube (Triangulation<dim> &tria,
                                const double        left,
                                const double        right)
 {
+  Assert (left < right,
+         ExcMessage ("Invalid left and right bounds of hypercube"));
+  
   Point<dim> p1;
   Point<dim> p2;
   for (unsigned int i=0;i<dim;++i)

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.