38 const dictionary&
dict,
39 const autoPtr<surfaceWriter>& writer
42 label noFailedChecks = 0;
45 faceSet faces(mesh,
"meshQualityFaces", mesh.nFaces()/100+1);
54 Info<<
" <<Writing " << nFaces
55 <<
" faces in error to set " << faces.name() <<
endl;
56 faces.instance() = mesh.pointsInstance();
65 return noFailedChecks;
Routines for checking mesh quality.
virtual Ostream & write(const char)=0
Write character.
Functions for checking mesh topology and geometry.
bool checkMesh(const bool report, const polyMesh &mesh, const dictionary &dict, const labelList &checkFaces, const List< labelPair > &baffles, labelHashSet &wrongFaces)
Check (subset of mesh including baffles) with mesh settings in dict.
void mergeAndWrite(const polyMesh &mesh, const surfaceWriter &setWriter, const word &name, const indirectPrimitivePatch setPatch, const fileName &outputDir)
Generate merged surface on master and write. Needs input patch.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
label checkMeshQuality(const polyMesh &, const dictionary &, const autoPtr< surfaceWriter > &)