mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: writeFile - add newFile function
ENH: writeFile - renamed createFile functions
to newFileAtTime and newFileAtStartTime
This commit is contained in:
committed by
Mark OLESEN
parent
c59b6db3c4
commit
f87f0040b8
@ -105,7 +105,7 @@ void Foam::functionObjects::energySpectrum::calcAndWriteSpectrum
|
||||
E /= kappaNorm;
|
||||
|
||||
Log << "Writing spectrum" << endl;
|
||||
autoPtr<OFstream> osPtr = createFile(name(), time_.value());
|
||||
autoPtr<OFstream> osPtr = newFileAtTime(name(), time_.value());
|
||||
OFstream& os = osPtr.ref();
|
||||
writeFileHeader(os);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user