STYLE: writeEntry instead of writeKeyword + END

This commit is contained in:
Mark Olesen
2019-01-11 11:03:36 +01:00
parent dcb6969361
commit 6c419174e1
7 changed files with 12 additions and 21 deletions

View File

@ -506,10 +506,8 @@ Foam::tmp<Foam::labelField> Foam::processorFaPatch::internalFieldTransfer
void Foam::processorFaPatch::write(Ostream& os) const
{
faPatch::write(os);
os.writeKeyword("myProcNo") << myProcNo_
<< token::END_STATEMENT << nl;
os.writeKeyword("neighbProcNo") << neighbProcNo_
<< token::END_STATEMENT << nl;
os.writeEntry("myProcNo", myProcNo_);
os.writeEntry("neighbProcNo", neighbProcNo_);
}

View File

@ -467,13 +467,13 @@ void Foam::faPatch::resetEdges(const labelList& newEdges)
void Foam::faPatch::write(Ostream& os) const
{
os.writeKeyword("type") << type() << token::END_STATEMENT << nl;
os.writeEntry("type", type());
patchIdentifier::write(os);
const labelList& edgeLabels = *this;
edgeLabels.writeEntry("edgeLabels", os);
os.writeKeyword("ngbPolyPatchIndex") << ngbPolyPatchIndex_
<< token::END_STATEMENT << nl;
os.writeEntry("ngbPolyPatchIndex", ngbPolyPatchIndex_);
}