37 const scalar reportDistSqr,
48 for (label i = 1; i < sortedMag.
size(); i++)
50 label pti = sortedMag.
indices()[i];
56 j >= 0 && (sortedMag[j] > sortedMag[i]-reportDistSqr);
60 label prevPtI = sortedMag.
indices()[j];
99 <<
" together found, number: " << nClose
void size(const label n)
Older name for setAddressableSize.
A list that is sorted upon construction or when explicitly requested with the sort() method...
dimensionedScalar sqrt(const dimensionedScalar &ds)
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual bool checkPointNearness(const bool report, const scalar reportDistSqr, labelHashSet *setPtr=nullptr) const
Check for point-point-nearness,.
virtual const pointField & points() const =0
Return mesh points.
bool insert(const Key &key)
Insert a new entry, not overwriting existing entries.
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)
const labelList & indices() const noexcept
Return the list of sorted indices. Updated every sort.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)