35 template<
class GeoField,
class Mesh>
47 wordList masterNames(fieldObjects.names());
49 if (syncPar && Pstream::parRun())
52 const wordList localNames(masterNames);
53 Pstream::scatter(masterNames);
59 const word& masterFld = masterNames[i];
63 if (iter == localNamesSet.
end())
67 "ReadFields<class GeoField, class Mesh>"
68 "(const Mesh&, const IOobjectList&, PtrList<GeoField>&"
70 ) <<
"Fields not synchronised across processors." <<
endl
71 <<
"Master has fields " << masterNames
72 <<
" processor " << Pstream::myProcNo()
77 localNamesSet.
erase(iter);
85 "ReadFields<class GeoField, class Mesh>"
86 "(const Mesh&, const IOobjectList&, PtrList<GeoField>&"
88 ) <<
"Fields not synchronised across processors." <<
endl
89 <<
"Master has fields " << masterNames
90 <<
" processor " << Pstream::myProcNo()
96 fields.
setSize(masterNames.size());
102 Info<<
"Reading " << GeoField::typeName <<
' ' << masterNames[i]
105 const IOobject& io = *fieldObjects[masterNames[i]];
119 IOobject::AUTO_WRITE,