36 const word& fieldName,
44 if (obr_.foundObject<VolFieldType>(fieldName))
47 <<
"readFields : Field " << fieldName <<
" already in database" 50 else if (obr_.foundObject<SurfaceFieldType>(fieldName))
53 <<
"readFields : Field " << fieldName
54 <<
" already in database" <<
endl;
61 mesh_.time().timeName(),
67 if (fieldHeader.headerOk())
70 Log <<
" Reading " << fieldName <<
endl;
72 label sz = vflds.size();
74 vflds.set(sz,
new VolFieldType(fieldHeader, mesh_));
81 mesh_.time().timeName(),
87 if (fieldHeader.headerOk())
90 Log <<
" Reading " << fieldName <<
endl;
92 label sz = sflds.size();
94 sflds.set(sz,
new SurfaceFieldType(fieldHeader, mesh_));
Templated form of IOobject providing type information for file reading and header type checking...
Ostream & endl(Ostream &os)
Add newline and flush stream.
void loadField(const word &, PtrList< GeometricField< Type, fvPatchField, volMesh >> &, PtrList< GeometricField< Type, fvsPatchField, surfaceMesh >> &) const
Generic GeometricField class.
A class for handling words, derived from string.
#define DebugInfo
Report an information message using Foam::Info.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
#define Log
Report write to Foam::Info if the local log switch is true.