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