bug fix for issue #241, precision in output file
This commit is contained in:
@ -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_)
|
||||
|
||||
@ -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_());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user