Corrected format of zone write

This commit is contained in:
Hrvoje Jasak 2015-07-04 21:30:07 +01:00
parent a1540947b9
commit 2f05fe31af
3 changed files with 9 additions and 9 deletions

View file

@ -262,12 +262,12 @@ void Foam::cellZone::write(Ostream& os) const
void Foam::cellZone::writeDict(Ostream& os) const
{
os << nl << name() << nl << token::BEGIN_BLOCK << nl
<< " type " << type() << token::END_STATEMENT << nl;
os << nl << name() << nl << token::BEGIN_BLOCK << incrIndent << nl
<< indent << "type " << type() << token::END_STATEMENT << nl;
writeEntry("cellLabels", os);
os << token::END_BLOCK << endl;
os << decrIndent << token::END_BLOCK << endl;
}

View file

@ -644,13 +644,13 @@ void Foam::faceZone::write(Ostream& os) const
void Foam::faceZone::writeDict(Ostream& os) const
{
os << nl << name() << nl << token::BEGIN_BLOCK << nl
<< " type " << type() << token::END_STATEMENT << nl;
os << nl << name() << nl << token::BEGIN_BLOCK << incrIndent << nl
<< indent << "type " << type() << token::END_STATEMENT << nl;
writeEntry("faceLabels", os);
flipMap().writeEntry("flipMap", os);
os << token::END_BLOCK << endl;
os << decrIndent << token::END_BLOCK << endl;
}

View file

@ -261,12 +261,12 @@ void Foam::pointZone::write(Ostream& os) const
void Foam::pointZone::writeDict(Ostream& os) const
{
os << nl << name() << nl << token::BEGIN_BLOCK << nl
<< " type " << type() << token::END_STATEMENT << nl;
os << nl << name() << nl << token::BEGIN_BLOCK << incrIndent << nl
<< indent << "type " << type() << token::END_STATEMENT << nl;
writeEntry("pointLabels", os);
os << token::END_BLOCK << endl;
os << decrIndent << token::END_BLOCK << endl;
}