ENH: mesh tools: max write precision

This commit is contained in:
mattijs
2013-10-29 09:59:21 +00:00
parent 95c06af87e
commit 41650787b1
18 changed files with 29 additions and 26 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -100,7 +100,7 @@ int main(int argc, char *argv[])
points = transform(T, points);
// Set the precision of the points data to 10
IOstream::defaultPrecision(10);
IOstream::defaultPrecision(max(10u, IOstream::defaultPrecision()));
Info<< "Writing points into directory " << points.path() << nl << endl;
points.write();