mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-12-08 06:57:54 +00:00
bug fix for issue #241, precision in output file
This commit is contained in:
@ -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_());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user