Ensight format writing: Reverted changes to writeKeyword

Patch contributed by Timo Niemi, VTT.
Resolves bug-report https://bugs.openfoam.org/view.php?id=3409
This commit is contained in:
Henry Weller
2019-12-12 11:53:54 +00:00
parent 0ad918f659
commit 52255e53a7
4 changed files with 9 additions and 9 deletions

View File

@ -307,7 +307,7 @@ void Foam::ensightPartCells::writeConnectivity
const labelUList& pointMap
) const
{
writeKeyword(os, key);
os.writeKeyword(key);
os.write(idList.size());
os.newline();

View File

@ -259,7 +259,7 @@ void Foam::ensightPartFaces::writeConnectivity
const labelUList& pointMap
) const
{
writeKeyword(os, key);
os.writeKeyword(key);
os.write(idList.size());
os.newline();

View File

@ -179,7 +179,7 @@ void Foam::ensightPart::writeGeometry
writeHeader(os, true);
// write points
writeKeyword(os, "coordinates");
os.writeKeyword("coordinates");
os.write(ptList.nPoints);
os.newline();
@ -226,7 +226,7 @@ void Foam::ensightPart::writeScalarField
if (perNode)
{
writeKeyword(os, "coordinates");
os.writeKeyword("coordinates");
writeFieldList(os, field, labelUList::null());
}
else
@ -237,7 +237,7 @@ void Foam::ensightPart::writeScalarField
if (idList.size())
{
writeKeyword(os, elementTypes()[elemI]);
os.writeKeyword(elementTypes()[elemI]);
writeFieldList(os, field, idList);
}
}
@ -261,7 +261,7 @@ void Foam::ensightPart::writeVectorField
if (perNode)
{
writeKeyword(os, "coordinates");
os.writeKeyword("coordinates");
writeFieldList(os, field0, labelUList::null());
writeFieldList(os, field1, labelUList::null());
writeFieldList(os, field2, labelUList::null());
@ -274,7 +274,7 @@ void Foam::ensightPart::writeVectorField
if (idList.size())
{
writeKeyword(os, elementTypes()[elemI]);
os.writeKeyword(elementTypes()[elemI]);
writeFieldList(os, field0, idList);
writeFieldList(os, field1, idList);
writeFieldList(os, field2, idList);

View File

@ -44,7 +44,7 @@ void Foam::ensightPart::writeField
if (perNode)
{
writeKeyword(os, "coordinates");
os.writeKeyword("coordinates");
for
(
direction cmpt=0;
@ -63,7 +63,7 @@ void Foam::ensightPart::writeField
if (idList.size())
{
writeKeyword(os, elementTypes()[elemI]);
os.writeKeyword(elementTypes()[elemI]);
for
(