67 const polyMesh& mesh = zones().mesh();
69 const label index = zones_.findIndex(
name());
75 const label pointi = operator[](i);
76 maxZone[pointi] = index;
77 minZone[pointi] = index;
93 && (maxZone[pointi] != minZone[pointi])
98 Info<<
" ***Problem with pointZone " <<
name()
99 <<
". Point " << pointi
100 <<
" at " << mesh.
points()[pointi]
102 << (minZone[pointi] ==
labelMax ? -1 : minZone[pointi])
103 <<
" on some processors and in zone "
105 <<
" on some other processors." <<
nl
106 <<
"(suppressing further warnings)"
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const MeshType & mesh() const
Return the mesh reference.
void topoChange(const labelList &map, const labelList &reverseMap)
Update the addressing using the maps provided.
bool checkDefinition(const label maxSize, const bool report=false) const
Check zone definition with max size given. Return true if in error.
const pointZoneList & zones_
Reference to zone list.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Class to handle errors and exceptions in a simple, consistent stream-based manner.
A subset of mesh points. The labels of points in the zone can be obtained from the addressing() list.
bool checkDefinition(const bool report=false) const
Check zone definition. Return true if in error.
const pointField & meshCentres() const
Return the mesh points.
static const char *const labelsName
The name associated with the zone-labels dictionary entry.
virtual void writeDict(Ostream &) const
Write dictionary.
bool checkParallelSync(const bool report=false) const
Check whether zone is synchronised across coupled boundaries. Return.
virtual void topoChange(const polyTopoChangeMap &map)
Update zone using the given map.
Mesh consisting of general polyhedral cells.
virtual const pointField & points() const
Return raw points.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const labelList & reversePointMap() const
Reverse point map.
const labelList & pointMap() const
Old point map.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
defineTypeNameAndDebug(combustionModel, 0)
Zone< pointZone, pointZoneList > pointZoneType
defineTemplateRunTimeSelectionTable(fvLabelFieldSource, null)
static const label labelMax
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.