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)";
104 void Foam::meshReader::writeMeshLabelList
107 const word& propertyName,
129 ioObj.
note() =
"persistent data for star-cd <-> foam translation";
151 writeInterfaces(registry);
#define forAll(list, i)
Loop across all elements in list.
const word & name() const
Return name.
static iteratorEnd end()
iteratorEnd set to beyond the end of any HashTable
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void warnDuplicates(const word &context, const wordList &)
Warn about repeated names.
void writeDict(const objectRegistry &, const word &name="cellTable", const fileName &instance="constant") const
Write constant/cellTable for later reuse.
bool insert(const Key &, const T &newElmt)
Insert a new hashedEntry.
iterator find(const Key &)
Find and return an iterator set at the hashedEntry.
string & note()
Return non-constant access to the optional note.
labelList origCellId_
Lookup original Cell number for a given cell.
A class for handling words, derived from string.
const word & constant() const
Return constant name.
streamFormat
Enumeration for the format of data in the stream.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
const Time & time() const
Return time.
cellTable cellTable_
Cell table persistent data saved as a dictionary.
static Stream & writeEndDivider(Stream &os)
Write the standard end file divider.
labelList cellTableId_
Cell table id for each cell.
static const versionNumber currentVersion
Current version number.
bool writeHeader(Ostream &) const
Write header.
virtual bool writeObject(IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType, const bool write) const
Write using given format, version and compression.
void writeAux(const objectRegistry &) const
Write auxiliary information.
Registry of regIOobjects.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
fileName objectPath() const
Return complete path + object name.