bug fix for issue #241, precision in output file

This commit is contained in:
Hamidreza
2025-07-29 00:54:49 +03:30
parent c340040b40
commit 42315d2221
6 changed files with 51 additions and 3 deletions

View File

@ -107,6 +107,14 @@ bool postprocessOperation::write(const fileSystem &parDir) const
processedFieldName() + ".Start_" + ti.timeName());
osPtr_ = makeUnique<oFstream>(path);
if(regPoints().scientific())
{
// set output format to scientific notation
osPtr_().stdStream()<<std::scientific;
}
osPtr_().precision(regPoints().precision());
regPoints().write(osPtr_());
}