112 zone(originalZone, newIndex),
134 const label newIndex,
153 labelList::operator=(addr);
159 const pointZone& originalZone,
165 pointZone(originalZone,
Foam::zero{}, index, zm)
175 return zoneMesh_.mesh().nPoints();
195 for (
const label pointi : addr)
197 maxZone[pointi] = index();
198 minZone[pointi] = index();
203 bool hasError =
false;
211 maxZone[pointi] != -1
214 && (maxZone[pointi] != minZone[pointi])
220 Info<<
" ***Problem with pointZone " << index()
221 <<
" named " <<
name()
222 <<
". Point " << pointi
225 << (minZone[pointi] ==
labelMax ? -1 : minZone[pointi])
226 <<
" on some processors and in zone " 228 <<
" on some other processors." <<
nl 229 <<
"(suppressing further warnings)" 249 zn.clearAddressing();
void operator=(const pointZone &zn)
Assign addressing, clearing demand-driven data.
label max_index() const noexcept
The maximum index the zone may contain == mesh nPoints()
void transfer(List< label > &list)
Transfer the contents of the argument List into this list and annul the argument list.
label nPoints() const noexcept
Number of mesh points.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
pointZone(const pointZone &)=delete
No copy construct.
Macros for easy insertion into run-time selection tables.
virtual const pointField & points() const
Return raw points.
#define forAll(list, i)
Loop across all elements in list.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
void operator=(const UList< label > &list)
Assignment to UList operator. Takes linear time.
Base class for mesh zones.
A class for handling words, derived from Foam::string.
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
ZoneMesh< pointZone, polyMesh > pointZoneMesh
A ZoneMesh with pointZone content on a polyMesh.
virtual bool checkParallelSync(const bool report=false) const
Check whether zone is synchronised across coupled boundaries.
virtual void resetAddressing(pointZone &&zn)
Move reset addressing from another zone.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
virtual void write(Ostream &os) const
Write (dictionary entries)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
messageStream Info
Information stream (stdout output on master, null elsewhere)
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
void writeEntry(Ostream &os) const
Write the UList with its compound type.
virtual void write(Ostream &os) const
Write (dictionary entries)
Mesh consisting of general polyhedral cells.
List< label > labelList
A List of labels.
static constexpr const char * labelsName()
The name associated with the zone-labels dictionary entry.
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)