Skip to content
Snippets Groups Projects
Commit 4272820f authored by Will Bainbridge's avatar Will Bainbridge Committed by Andrew Heather
Browse files

BUG: writeFile: Increased the number of value characters

The number of characters needed to print a double in scientific format
is 8 plus the number of decimal places; e.g., -6.453452e-231 (6 decimal
places, 14 characters). This has been set in writeFile.C, replacing a
value of 7. Presumably, the case of three digits in the exponent was not
considered when this was first implemented. This change ensures at least
one character of whitespace between tabulated numbers.

This resolves bug report https://bugs.openfoam.org/view.php?id=2801
parent 13d893e4
Branches
Tags
No related merge requests found
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012-2018 OpenFOAM Foundation
\\/ M anipulation | Copyright (C) 2015-2018 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
......@@ -35,7 +35,7 @@ const Foam::word Foam::functionObjects::writeFile::outputPrefix
"postProcessing"
);
Foam::label Foam::functionObjects::writeFile::addChars = 7;
Foam::label Foam::functionObjects::writeFile::addChars = 8;
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment