112 zone(originalZone, newIndex),
134 const label newIndex,
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
223 <<
" at " <<
mesh.points()[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();
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
void transfer(List< label > &list)
void operator=(const UList< label > &list)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
void writeEntry(Ostream &os) const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
static constexpr const char * labelsName()
The name associated with the zone-labels dictionary entry.
virtual void write(Ostream &os) const
Write (dictionary entries).
const pointZoneMesh & zoneMesh() const noexcept
Return reference to the zone mesh.
label max_index() const noexcept
The maximum index the zone may contain == mesh nPoints().
void operator=(const pointZone &zn)
Assign addressing, clearing demand-driven data.
virtual void resetAddressing(pointZone &&zn)
Move reset addressing from another zone.
virtual bool checkParallelSync(const bool report=false) const
Check whether zone is synchronised across coupled boundaries.
pointZone(const pointZone &)=delete
No copy construct.
Mesh consisting of general polyhedral cells.
A class for handling words, derived from Foam::string.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
label index() const noexcept
The index of this zone in the zone list.
virtual void write(Ostream &os) const
Write (dictionary entries).
zone()
Default construct: empty zone with name="", index=0.
virtual void clearAddressing()
Clear addressing (remove lookup maps and other auxiliary information).
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
OBJstream os(runTime.globalPath()/outputName)
ZoneMesh< pointZone, polyMesh > pointZoneMesh
A ZoneMesh with pointZone content on a polyMesh.
List< label > labelList
A List of labels.
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
UList< label > labelUList
A UList of labels.
constexpr char nl
The newline '\n' character (0x0a).
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.
#define forAll(list, i)
Loop across all elements in list.