| 42 | // * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * // |
| 43 | |
| 44 | bool Foam::ensightPart::isFieldDefined(const List<scalar>& field) const |
| 45 | { |
| 46 | forAll(elemLists_, elemI) |
| 47 | { |
| 48 | const labelUList& idList = elemLists_[elemI]; |
| 49 | |
| 50 | forAll(idList, i) |
| 51 | { |
| 52 | const label id = idList[i]; |
| 53 | |
| 54 | if (id >= field.size() || std::isnan(field[id])) |
| 55 | { |
| 56 | return false; |
| 57 | } |
| 58 | } |
| 59 | } |
| 60 | return true; |
| 61 | } |
| 62 | |
| 63 | |
| 64 | // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // |
no test coverage detected