MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / write

Function write

src/mesh/blockMesh/blockMeshTools/blockMeshTools.C:91–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89
90
91void Foam::blockMeshTools::write
92(
93 Ostream& os,
94 const label val,
95 const dictionary& dict
96)
97{
98 forAllConstIter(dictionary, dict, iter)
99 {
100 if (iter().isStream())
101 {
102 label keyVal(Foam::readLabel(iter().stream()));
103 if (keyVal == val)
104 {
105 os << iter().keyword();
106 return;
107 }
108 }
109 }
110 os << val;
111}
112
113
114const Foam::keyType& Foam::blockMeshTools::findEntry

Callers

nothing calls this directly

Calls 2

forAllConstIterFunction · 0.50
isStreamMethod · 0.45

Tested by

no test coverage detected