From 28f1a9bad376e06b2caf4bac27f57908d717dbac Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 3 Feb 2004 14:55:51 +0000 Subject: [PATCH] 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 --- deal.II/deal.II/source/grid/grid_out.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5