mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: add OFstream rewind() method.
- truncates output file, handles compressed streams
This commit is contained in:
@ -105,6 +105,18 @@ int main(int argc, char *argv[])
|
||||
printInfo(os1);
|
||||
printInfo(os2);
|
||||
printInfo(os3);
|
||||
|
||||
// Rewind and test single output
|
||||
os1.rewind(); generateOutput(os1);
|
||||
os2.rewind(); generateOutput(os2);
|
||||
os3.rewind(); generateOutput(os3);
|
||||
|
||||
Info<< nl
|
||||
<< "single output" << nl;
|
||||
|
||||
printInfo(os1);
|
||||
printInfo(os2);
|
||||
printInfo(os3);
|
||||
}
|
||||
|
||||
Info<< "\nEnd\n" << endl;
|
||||
|
||||
Reference in New Issue
Block a user