]> https://gitweb.dealii.org/ - dealii.git/commitdiff
lrint is only part of C99, and thus not in C++ by default. So don't use it and
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 4 Feb 2004 01:10:52 +0000 (01:10 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 4 Feb 2004 01:10:52 +0000 (01:10 +0000)
instead rely on standard means. If this is what I want remains to be seen...

git-svn-id: https://svn.dealii.org/trunk@8391 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 47472a131a4f277cca51e0d0390465fb7761c8c3..29edc5481472366ac060f9369703730d6c2c80e0 100644 (file)
@@ -1161,9 +1161,9 @@ void GridOut::write_eps (const Triangulation<dim> &tria,
                                         // lower left corner
          << "0 0 "
                                         // upper right corner
-         << lrint( (x_max-x_min) * scale )+1
+         << static_cast<unsigned int>(std::floor(( (x_max-x_min) * scale )+1))
          << ' '
-         << lrint( (y_max-y_min) * scale )+1
+          << static_cast<unsigned int>(std::floor(( (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.