109 zone(origZone, addr, index),
122 zone(origZone, std::move(addr), index),
137 return zone::checkDefinition(zoneMesh_.mesh().points().size(), report);
150 for (
const label pointi : addr)
152 maxZone[pointi] = index();
153 minZone[pointi] = index();
158 bool hasError =
false;
166 maxZone[pointi] != -1
169 && (maxZone[pointi] != minZone[pointi])
175 Info<<
" ***Problem with pointZone " << index()
176 <<
" named " <<
name()
177 <<
". Point " << pointi
180 << (minZone[pointi] ==
labelMax ? -1 : minZone[pointi])
181 <<
" on some processors and in zone "
183 <<
" on some other processors." <<
nl
184 <<
"(suppressing further warnings)"
201 writeEntry(this->labelsName,
os);
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
void operator=(const UList< label > &a)
Assignment to UList operator. Takes linear time.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual Ostream & endBlock()
Write end block group.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
virtual Ostream & beginBlock(const keyType &kw)
Write begin block group with the given name.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool write()
Write the output fields.
Foam::dictionary writeDict() const
Write to dictionary.
virtual bool checkDefinition(const bool report=false) const
Check zone definition. Return true if in error.
static const char *const labelsName
void operator=(const pointZone &zn)
Assign addressing, clearing demand-driven data.
label whichPoint(const label globalPointID) const
Helper function to re-direct to zone::localID(...)
virtual bool checkParallelSync(const bool report=false) const
Check whether zone is synchronised across coupled boundaries.
Mesh consisting of general polyhedral cells.
virtual const pointField & points() const
Return raw points.
label nPoints() const noexcept
Number of mesh points.
transferModelList & transfer()
Transfer.
A class for handling words, derived from Foam::string.
Base class for mesh zones.
label localID(const label globalID) const
Lookup local address in zone for given global index.
virtual void write(Ostream &os) const
Write.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
OBJstream os(runTime.globalPath()/outputName)
messageStream Info
Information stream (stdout output on master, null elsewhere)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
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 INVALID.
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.