36 const scalar reportLenSqr,
43 scalar minLenSqr =
sqr(GREAT);
44 scalar maxLenSqr = -
sqr(GREAT);
58 if (magSqrE < reportLenSqr)
64 minLenSqr =
min(minLenSqr, magSqrE);
65 maxLenSqr =
max(maxLenSqr, magSqrE);
72 label nSmall = smallEdgeSet.
size();
84 Info<<
" *Edges too small, min/max edge length = "
85 <<
sqrt(minLenSqr) <<
" " <<
sqrt(maxLenSqr)
86 <<
", number too small: " << nSmall <<
endl;
94 Info<<
" Min/max edge length = "
95 <<
sqrt(minLenSqr) <<
" " <<
sqrt(maxLenSqr) <<
" OK." <<
endl;
bool insert(const Key &key)
Insert a new entry, not overwriting existing entries.
void transfer(HashTable< T, Key, Hash > &rhs)
Transfer contents into this table.
label size() const noexcept
The number of elements in table.
label fcIndex(const label i) const noexcept
A face is a list of labels corresponding to mesh vertices.
virtual bool checkEdgeLength(const bool report, const scalar minLenSqr, labelHashSet *setPtr=nullptr) const
Check edge length.
virtual const faceList & faces() const =0
Return faces.
label nPoints() const noexcept
Number of mesh points.
virtual const pointField & points() const =0
Return mesh points.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensionedScalar sqrt(const dimensionedScalar &ds)
void reduce(const List< UPstream::commsStruct > &comms, T &value, const BinaryOp &bop, const int tag, const label comm)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
#define forAll(list, i)
Loop across all elements in list.