From: Wolfgang Bangerth Date: Wed, 4 Feb 2004 01:10:52 +0000 (+0000) Subject: lrint is only part of C99, and thus not in C++ by default. So don't use it and X-Git-Tag: v8.0.0~15849 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0489da86aec447104c0c97a264596ad1398c0273;p=dealii.git lrint is only part of C99, and thus not in C++ by default. So don't use it and 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 --- diff --git a/deal.II/deal.II/source/grid/grid_out.cc b/deal.II/deal.II/source/grid/grid_out.cc index 47472a131a..29edc54814 100644 --- a/deal.II/deal.II/source/grid/grid_out.cc +++ b/deal.II/deal.II/source/grid/grid_out.cc @@ -1161,9 +1161,9 @@ void GridOut::write_eps (const Triangulation &tria, // lower left corner << "0 0 " // upper right corner - << lrint( (x_max-x_min) * scale )+1 + << static_cast(std::floor(( (x_max-x_min) * scale )+1)) << ' ' - << lrint( (y_max-y_min) * scale )+1 + << static_cast(std::floor(( (y_max-y_min) * scale )+1)) << std::endl; // define some abbreviations to keep