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

@ -157,6 +157,14 @@ bool pFlow::postprocessData::PostprocessComponent<RegionType, ProcessMethodType>
auto osPtr = makeUnique<oFstream>(file);
// set output format to scientific notation
if(regPoints().scientific())
{
osPtr->stdStream() << std::scientific;
}
osPtr().precision(regPoints().precision());
regPoints().write(osPtr());
for(auto& operation:operatios_)

View File

@ -157,6 +157,12 @@ bool pFlow::postprocessData::particleProbePostprocessComponent::write(const file
// file is not open yet
fileSystem path = parDir + (name_+".Start_"+ti.timeName());
osPtr_ = makeUnique<oFstream>(path);
if(regionPointsPtr_().scientific())
{
osPtr_().stdStream() << std::scientific;
}
osPtr_().precision(regionPointsPtr_().precision());
regionPointsPtr_().write(osPtr_());
}