Possible bug fixes in stream flushing for mesh objects
This commit is contained in:
parent
7de4822fce
commit
c96d019db1
2 changed files with 5 additions and 2 deletions
|
@ -1026,12 +1026,14 @@ bool Foam::polyBoundaryMesh::writeData(Ostream& os) const
|
|||
|
||||
os << patches.size() << nl << token::BEGIN_LIST << incrIndent << nl;
|
||||
|
||||
// Note: careful write: endl is not allowed because it flushes a stream
|
||||
// HJ, 24/Oct/2018
|
||||
forAll (patches, patchi)
|
||||
{
|
||||
os << indent << patches[patchi].name() << nl
|
||||
<< indent << token::BEGIN_BLOCK << nl
|
||||
<< incrIndent << patches[patchi] << decrIndent
|
||||
<< indent << token::END_BLOCK << endl;
|
||||
<< indent << token::END_BLOCK << nl;
|
||||
}
|
||||
|
||||
os << decrIndent << token::END_LIST << endl;
|
||||
|
|
|
@ -657,7 +657,8 @@ Foam::Ostream& Foam::operator<<(Ostream& os, const polyMesh& m)
|
|||
<< m.boundaryMesh() << nl
|
||||
<< m.pointZones() << nl
|
||||
<< m.faceZones() << nl
|
||||
<< m.cellZones();
|
||||
<< m.cellZones() << nl
|
||||
<< endl;
|
||||
|
||||
return os;
|
||||
}
|
||||
|
|
Reference in a new issue