43 bool duplicates =
false;
45 for (
const word& w : list)
48 auto iter = hashed.
find(w);
63 Info<<
nl <<
"WARNING: " << context <<
" with identical names:";
68 Info<<
" " << iter.key();
78 void Foam::meshReader::writeInterfaces(
const objectRegistry& registry)
const 95 ioObj.note() =
"as yet unsupported interfaces (baffles)";
97 Info<<
"Writing " << ioObj.name() <<
" to " << ioObj.objectPath() <<
endl;
100 ioObj.writeHeader(
os);
107 void Foam::meshReader::writeMeshLabelList
109 const objectRegistry& registry,
110 const word& propertyName,
112 IOstreamOption streamOpt
121 registry.time().constant(),
132 ioObj.note() =
"persistent data for STARCD <-> OPENFOAM translation";
133 Info<<
"Writing " << ioObj.name() <<
" to " << ioObj.objectPath() <<
endl;
139 ioObj.writeObject(streamOpt,
true);
147 cellTable_.writeDict(registry);
148 writeInterfaces(registry);
void size(const label n)
Older name for setAddressableSize.
Output to file stream, using an OSstream.
constexpr char nl
The newline '\n' character (0x0a)
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void warnDuplicates(const word &context, const wordList &)
Warn about repeated names.
A simple container for options an IOstream can normally have.
Ignore writing from objectRegistry::writeObject()
bool insert(const Key &key, const T &obj)
Copy insert a new entry, not overwriting existing entries.
A class for handling words, derived from Foam::string.
iterator find(const Key &key)
Find and return an iterator set at the hashed entry.
const Time & time() const noexcept
Return time registry.
static Ostream & writeEndDivider(Ostream &os)
Write the standard end file divider.
const word & constant() const noexcept
Return constant name.
OBJstream os(runTime.globalPath()/outputName)
Automatically write from objectRegistry::writeObject()
messageStream Info
Information stream (stdout output on master, null elsewhere)
void writeAux(const objectRegistry &) const
Write auxiliary information.
List< label > labelList
A List of labels.
Registry of regIOobjects.
Defines the attributes of an object for which implicit objectRegistry management is supported...
forAllConstIters(mixture.phases(), phase)