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

Function objects

src/sampling/sampledSet/sampledSets/sampledSetsGrouping.C:87–113  ·  view source on GitHub ↗

Check files for a particular time

(mesh_, mesh_.time()

Source from the content-addressed store, hash-verified

85 {
86 // Check files for a particular time
87 IOobjectList objects(mesh_, mesh_.time().timeName());
88 wordList allFields = objects.sortedNames();
89
90 forAll(fieldSelection_, i)
91 {
92 labelList indices = findStrings(fieldSelection_[i], allFields);
93
94 if (indices.size())
95 {
96 forAll(indices, fieldi)
97 {
98 const word& fieldName = allFields[indices[fieldi]];
99
100 nFields += appendFieldGroup
101 (
102 fieldName,
103 objects.find(fieldName)()->headerClassName()
104 );
105 }
106 }
107 else
108 {
109 WarningInFunction
110 << "Cannot find field file matching "
111 << fieldSelection_[i] << endl;
112 }
113 }
114 }
115 else
116 {

Callers

nothing calls this directly

Calls 3

findStringsFunction · 0.85
forAllFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected