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

Function isFieldDefined

src/conversion/ensight/part/ensightPart.C:44–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
43
44bool 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 * * * * * * * * * * * * * * //

Callers 2

writeScalarFieldFunction · 0.85
writeVectorFieldFunction · 0.85

Calls 2

forAllFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected