Go to the documentation of this file.
36 const word& fieldName,
44 if (obr_.foundObject<vfType>(fieldName))
48 Info<<
"partialWrite : Field "
49 << fieldName <<
" found in database" <<
endl;
55 obr_.lookupObject<vfType>(fieldName)
59 const unsigned int sz = vflds.size();
60 vflds.setSize(sz + 1);
61 vflds.set(sz, &vField);
63 else if (obr_.foundObject<sfType>(fieldName))
67 Info<<
"partialWrite : Field " << fieldName
68 <<
" found in database" <<
endl;
74 obr_.lookupObject<sfType>(fieldName)
78 const unsigned int sz = sflds.size();
79 sflds.setSize(sz + 1);
80 sflds.set(sz, &sField);
95 vflds[i].writeOpt() = wOption;
100 sflds[i].writeOpt() = wOption;
A class for handling words, derived from string.
#define forAll(list, i)
Loop across all elements in list.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void loadField(const word &, UPtrList< GeometricField< Type, fvPatchField, volMesh > > &, UPtrList< GeometricField< Type, fvsPatchField, surfaceMesh > > &) const
Load objects in the objectNames.
writeOption
Enumeration defining the write options.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
void changeWriteOptions(UPtrList< GeometricField< Type, fvPatchField, volMesh > > &, UPtrList< GeometricField< Type, fvsPatchField, surfaceMesh > > &, const IOobject::writeOption) const
Generic GeometricField class.