| 84 | |
| 85 | |
| 86 | void 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 | |
| 117 | void Foam::edgeMesh::writeStats(Ostream& os) const |
no test coverage detected