| 214 | |
| 215 | |
| 216 | void Foam::ensightPart::writeScalarField |
| 217 | ( |
| 218 | ensightFile& os, |
| 219 | const List<scalar>& field, |
| 220 | const bool perNode |
| 221 | ) const |
| 222 | { |
| 223 | if (size() && field.size() && (os.allowUndef() || isFieldDefined(field))) |
| 224 | { |
| 225 | writeHeader(os); |
| 226 | |
| 227 | if (perNode) |
| 228 | { |
| 229 | os.writeKeyword("coordinates"); |
| 230 | writeFieldList(os, field, labelUList::null()); |
| 231 | } |
| 232 | else |
| 233 | { |
| 234 | forAll(elementTypes(), elemI) |
| 235 | { |
| 236 | const labelUList& idList = elemLists_[elemI]; |
| 237 | |
| 238 | if (idList.size()) |
| 239 | { |
| 240 | os.writeKeyword(elementTypes()[elemI]); |
| 241 | writeFieldList(os, field, idList); |
| 242 | } |
| 243 | } |
| 244 | } |
| 245 | } |
| 246 | } |
| 247 | |
| 248 | |
| 249 | void Foam::ensightPart::writeVectorField |
nothing calls this directly
no test coverage detected