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

Function write

src/meshTools/edgeMesh/edgeMeshIO.C:86–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84
85
86void Foam::edgeMesh::write
87(
88 const fileName& name,
89 const edgeMesh& mesh
90)
91{
92 if (debug)
93 {
94 InfoInFunction << "Writing to " << name << endl;
95 }
96
97 const word ext = name.ext();
98
99 writefileExtensionMemberFunctionTable::iterator mfIter =
100 writefileExtensionMemberFunctionTablePtr_->find(ext);
101
102 if (mfIter == writefileExtensionMemberFunctionTablePtr_->end())
103 {
104 FatalErrorInFunction
105 << "Unknown file extension " << ext << nl << nl
106 << "Valid types are :" << endl
107 << writefileExtensionMemberFunctionTablePtr_->sortedToc()
108 << exit(FatalError);
109 }
110 else
111 {
112 mfIter()(name, mesh);
113 }
114}
115
116
117void Foam::edgeMesh::writeStats(Ostream& os) const

Callers 3

writeMethod · 0.70
edgeMeshIO.CFile · 0.70
writeObjectFunction · 0.50

Calls 2

exitFunction · 0.50
endMethod · 0.45

Tested by

no test coverage detected