mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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
This commit is contained in:
committed by
Andrew Heather
parent
13d893e4c0
commit
4272820fca
@ -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 * * * * * * * * * * * //
|
||||
|
||||
Reference in New Issue
Block a user