mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: fix worst spacing violations for 'os <<' constructions
- accept some violations of the coding guidelines though - perhaps adding a style exception would be simpler.
This commit is contained in:
@ -47,8 +47,7 @@ void writeObj(Ostream& os,const pointField& points)
|
|||||||
{
|
{
|
||||||
const point& pt = points[pointI];
|
const point& pt = points[pointI];
|
||||||
|
|
||||||
os << "v " << pt.x() << ' ' << pt.y()
|
os << "v " << pt.x() << ' ' << pt.y() << ' ' << pt.z() << endl;
|
||||||
<< ' ' << pt.z() << endl;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -88,7 +88,7 @@ void writeWallFlags(Ostream& os, label cellI, const labelList& wallFlags)
|
|||||||
os << "cell " << cellI << " wallsFlags:";
|
os << "cell " << cellI << " wallsFlags:";
|
||||||
forAll(wallFlags, wallFaceI)
|
forAll(wallFlags, wallFaceI)
|
||||||
{
|
{
|
||||||
os << wallFlags[wallFaceI] << " ";
|
os << wallFlags[wallFaceI] << ' ';
|
||||||
}
|
}
|
||||||
os << endl;
|
os << endl;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -508,9 +508,8 @@ void vtkPV3FoamReader::PrintSelf(ostream& os, vtkIndent indent)
|
|||||||
foamData_->PrintSelf(os, indent);
|
foamData_->PrintSelf(os, indent);
|
||||||
|
|
||||||
os << indent << "Time step range: "
|
os << indent << "Time step range: "
|
||||||
<< this->TimeStepRange[0] << " - " << this->TimeStepRange[1]
|
<< this->TimeStepRange[0] << " - " << this->TimeStepRange[1] << "\n"
|
||||||
<< "\n";
|
<< indent << "Time step: " << this->GetTimeStep() << endl;
|
||||||
os<< indent << "Time step: " << this->GetTimeStep() << endl;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -131,7 +131,6 @@ void printSourceFileAndLine
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
string cwdLine(line.replaceAll(cwd() + '/', ""));
|
string cwdLine(line.replaceAll(cwd() + '/', ""));
|
||||||
|
|
||||||
string homeLine(cwdLine.replaceAll(home(), '~'));
|
string homeLine(cwdLine.replaceAll(home(), '~'));
|
||||||
|
|
||||||
os << " at " << homeLine.c_str();
|
os << " at " << homeLine.c_str();
|
||||||
|
|||||||
@ -53,7 +53,7 @@ void triSurface::writeDXGeometry
|
|||||||
os << "# " << patchI << " "
|
os << "# " << patchI << " "
|
||||||
<< myPatches[patchI].name() << endl;
|
<< myPatches[patchI].name() << endl;
|
||||||
}
|
}
|
||||||
os << endl << endl;
|
os << nl << endl;
|
||||||
|
|
||||||
// Write vertex coordinates
|
// Write vertex coordinates
|
||||||
|
|
||||||
@ -87,7 +87,6 @@ void triSurface::writeDXGeometry
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
const label faceI = faceMap[faceIndex++];
|
const label faceI = faceMap[faceIndex++];
|
||||||
|
|
||||||
const labelledTri& f = localFaces()[faceI];
|
const labelledTri& f = localFaces()[faceI];
|
||||||
|
|
||||||
os << f[0] << ' ' << f[1] << ' ' << f[2] << endl;
|
os << f[0] << ' ' << f[1] << ' ' << f[2] << endl;
|
||||||
|
|||||||
@ -48,7 +48,7 @@ void triSurface::writeOFF(const bool writeSorted, Ostream& os) const
|
|||||||
os << "# " << patchI << " "
|
os << "# " << patchI << " "
|
||||||
<< myPatches[patchI].name() << endl;
|
<< myPatches[patchI].name() << endl;
|
||||||
}
|
}
|
||||||
os << endl << endl;
|
os << nl << endl;
|
||||||
|
|
||||||
const pointField& ps = points();
|
const pointField& ps = points();
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ void triSurface::writeOFF(const bool writeSorted, Ostream& os) const
|
|||||||
<< ps.size()
|
<< ps.size()
|
||||||
<< ' ' << size()
|
<< ' ' << size()
|
||||||
<< ' ' << nEdges()
|
<< ' ' << nEdges()
|
||||||
<< endl << endl;
|
<< nl << endl;
|
||||||
|
|
||||||
// Write vertex coords
|
// Write vertex coords
|
||||||
forAll(ps, pointi)
|
forAll(ps, pointi)
|
||||||
|
|||||||
@ -62,8 +62,8 @@ void triSurface::writeSTLASCII(Ostream& os) const
|
|||||||
const vector& n = faceNormals()[faceI];
|
const vector& n = faceNormals()[faceI];
|
||||||
|
|
||||||
os << " facet normal "
|
os << " facet normal "
|
||||||
<< n.x() << ' ' << n.y() << ' ' << n.z() << endl;
|
<< n.x() << ' ' << n.y() << ' ' << n.z() << nl
|
||||||
os << " outer loop" << endl;
|
<< " outer loop" << endl;
|
||||||
|
|
||||||
const labelledTri& f = (*this)[faceI];
|
const labelledTri& f = (*this)[faceI];
|
||||||
const point& pa = points()[f[0]];
|
const point& pa = points()[f[0]];
|
||||||
@ -71,14 +71,12 @@ void triSurface::writeSTLASCII(Ostream& os) const
|
|||||||
const point& pc = points()[f[2]];
|
const point& pc = points()[f[2]];
|
||||||
|
|
||||||
os << " vertex "
|
os << " vertex "
|
||||||
<< pa.x() << ' ' << pa.y() << ' ' << pa.z() << endl;
|
<< pa.x() << ' ' << pa.y() << ' ' << pa.z() << nl
|
||||||
os << " vertex "
|
<< " vertex "
|
||||||
<< pb.x() << ' ' << pb.y() << ' ' << pb.z() << endl;
|
<< pb.x() << ' ' << pb.y() << ' ' << pb.z() << nl
|
||||||
os << " vertex "
|
<< " vertex "
|
||||||
<< pc.x() << ' ' << pc.y() << ' ' << pc.z() << endl;
|
<< pc.x() << ' ' << pc.y() << ' ' << pc.z() << nl
|
||||||
os
|
<< " endloop" << nl
|
||||||
<< " endloop" << endl;
|
|
||||||
os
|
|
||||||
<< " endfacet" << endl;
|
<< " endfacet" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user