From: wolf Date: Tue, 3 Feb 2004 14:55:51 +0000 (+0000) Subject: Make the result computing the bounding box more predictable. Presently, we get altern... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8a7f380a5661f9b486632ee284e584ee2e6a442;p=dealii-svn.git Make the result computing the bounding box more predictable. Presently, we get alternatingly 300 and 301, so instead of casting, we now round to the next integer. git-svn-id: https://svn.dealii.org/trunk@8385 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/grid/grid_out.cc b/deal.II/deal.II/source/grid/grid_out.cc index 882a37fde3..47472a131a 100644 --- a/deal.II/deal.II/source/grid/grid_out.cc +++ b/deal.II/deal.II/source/grid/grid_out.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 by the deal.II authors +// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -1161,9 +1161,9 @@ void GridOut::write_eps (const Triangulation &tria, // lower left corner << "0 0 " // upper right corner - << static_cast( (x_max-x_min) * scale )+1 + << lrint( (x_max-x_min) * scale )+1 << ' ' - << static_cast( (y_max-y_min) * scale )+1 + << lrint( (y_max-y_min) * scale )+1 << std::endl; // define some abbreviations to keep