40 bool duplicates =
false;
46 if (iter != hashed.
end())
53 hashed.
insert(list[listI], 1);
60 Info<<
nl <<
"WARNING: " << context <<
" with identical names:";
65 Info<<
" " << iter.key();
75 void Foam::meshReader::writeInterfaces(
const objectRegistry& registry)
const
92 ioObj.note() =
"as yet unsupported interfaces (baffles)";
94 Info<<
"Writing " << ioObj.name() <<
" to " << ioObj.objectPath() <<
endl;
97 ioObj.writeHeader(os);
100 ioObj.writeEndDivider(os);
104 void Foam::meshReader::writeMeshLabelList
106 const objectRegistry& registry,
107 const word& propertyName,
118 registry.time().constant(),
129 ioObj.note() =
"persistent data for star-cd <-> foam translation";
130 Info<<
"Writing " << ioObj.name() <<
" to " << ioObj.objectPath() <<
endl;
150 cellTable_.writeDict(registry);
151 writeInterfaces(registry);
#define forAll(list, i)
Loop across all elements in list.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
bool insert(const Key &, const T &newElmt)
Insert a new hashedEntry.
iterator find(const Key &)
Find and return an iterator set at the hashedEntry.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
static const versionNumber currentVersion
Current version number.
streamFormat
Enumeration for the format of data in the stream.
void size(const label)
Override size to be inconsistent with allocated storage.
static const word & constant()
Return constant name.
static void warnDuplicates(const word &context, const wordList &)
Warn about repeated names.
void writeAux(const objectRegistry &) const
Write auxiliary information.
Registry of regIOobjects.
const Time & time() const
Return time.
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
A class for handling words, derived from string.
List< label > labelList
A List of labels.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static iteratorEnd end()
iteratorEnd set to beyond the end of any HashTable