]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make the result computing the bounding box more predictable. Presently, we get altern...
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 3 Feb 2004 14:55:51 +0000 (14:55 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 3 Feb 2004 14:55:51 +0000 (14:55 +0000)
git-svn-id: https://svn.dealii.org/trunk@8385 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/grid_out.cc

index 882a37fde35c3e28f7724bf0a1b78b7d31bd1f75..47472a131a4f277cca51e0d0390465fb7761c8c3 100644 (file)
@@ -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<dim> &tria,
                                         // lower left corner
          << "0 0 "
                                         // upper right corner
-         << static_cast<unsigned int>( (x_max-x_min) * scale )+1
+         << lrint( (x_max-x_min) * scale )+1
          << ' '
-         << static_cast<unsigned int>( (y_max-y_min) * scale )+1
+         << lrint( (y_max-y_min) * scale )+1
          << std::endl;
 
                                       // define some abbreviations to keep

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.