45 template<
class Type,
template<
class>
class GeoField>
54 if (!iter()->isOldTime())
56 curFields.
set(i++, iter());
65 template<
class Type,
template<
class>
class GeoField>
66 void Foam::fvMesh::storeOldTimeFields()
72 curFields[i].storeOldTimes();
77 template<
template<
class>
class GeoField>
78 void Foam::fvMesh::storeOldTimeFields()
80 #define StoreOldTimeFields(Type, nullArg) \
81 storeOldTimeFields<Type, GeoField>();
83 #undef StoreOldTimeFields
87 template<
class Type,
template<
class>
class GeoField>
88 void Foam::fvMesh::nullOldestTimeFields()
90 UPtrList<GeoField<Type>> curFields(this->curFields<Type, GeoField>());
94 curFields[i].nullOldestTime();
99 template<
template<
class>
class GeoField>
100 void Foam::fvMesh::nullOldestTimeFields()
102 #define nullOldestTimeFields(Type, nullArg) \
103 nullOldestTimeFields<Type, GeoField>();
105 #undef nullOldestTimeFields
#define forAll(list, i)
Loop across all elements in list.
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
An STL-conforming hash table.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
bool set(const label) const
Is element set.
void setSize(const label)
Reset size of UPtrList. This can only be used to set the size.
pTraits< Type >::labelType validComponents() const
Return a labelType of valid component indicators.
Traits class for primitives.
const Vector< label > & solutionD() const
Return the vector of solved-for directions in mesh.
A class representing the concept of 0 used to avoid unnecessary manipulations for objects that are kn...
#define StoreOldTimeFields(Type, nullArg)
#define nullOldestTimeFields(Type, nullArg)
Info<< "Calculating turbulent flame speed field St\n"<< endl;volScalarField St(IOobject("St", runTime.name(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), flameWrinkling->Xi() *Su);multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
FOR_ALL_FIELD_TYPES(DefineContiguousFvWallLocationDataType)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.