From 0d1cd2abc91dbe3e25bced25868114c4bfc73276 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 10 Feb 2006 21:56:17 +0000 Subject: [PATCH] Check that left bound < right bound for hyper_cube. git-svn-id: https://svn.dealii.org/trunk@12306 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/grid/grid_generator.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deal.II/deal.II/source/grid/grid_generator.cc b/deal.II/deal.II/source/grid/grid_generator.cc index b456408dea..3e0695fd8c 100644 --- a/deal.II/deal.II/source/grid/grid_generator.cc +++ b/deal.II/deal.II/source/grid/grid_generator.cc @@ -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 &tria, const double left, const double right) { + Assert (left < right, + ExcMessage ("Invalid left and right bounds of hypercube")); + Point p1; Point p2; for (unsigned int i=0;i