13 autoPtr<surfaceWriter>&
writer 16 label noFailedChecks = 0;
19 faceSet faces(
mesh,
"meshQualityFaces",
mesh.nFaces()/100+1);
20 motionSmoother::checkMesh(
false,
mesh,
dict, faces);
22 label nFaces =
returnReduce(faces.size(), sumOp<label>());
28 Info<<
" <<Writing " << nFaces
29 <<
" faces in error to set " << faces.name() <<
endl;
30 faces.instance() =
mesh.pointsInstance();
40 return noFailedChecks;
vtk::lineWriter writer(edgeCentres, edgeList::null(), fileName(aMesh.time().globalPath()/"finiteArea-edgesCentres"))
Ostream & endl(Ostream &os)
Add newline and flush stream.
void mergeAndWrite(const polyMesh &mesh, surfaceWriter &writer, const word &name, const indirectPrimitivePatch &setPatch, const fileName &outputDir)
Generate merged surface on master and write. Needs input patch.
T returnReduce(const T &value, const BinaryOp &bop, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm)
Perform reduction on a copy, using specified binary operation.
label checkMeshQuality(const polyMesh &mesh, const dictionary &dict, autoPtr< surfaceWriter > &writer)
messageStream Info
Information stream (stdout output on master, null elsewhere)