Commit abafef4a authored by henry's avatar henry
Browse files

Added calls to the 'setUpToDate' function for the caching mechanism.

parent c271c97a
......@@ -156,7 +156,7 @@ bool Foam::regIOobject::checkOut()
}
bool Foam::regIOobject::uptodate(const word& a) const
bool Foam::regIOobject::upToDate(const word& a) const
{
if (db().lookupObject<regIOobject>(a).eventNo() >= eventNo_)
{
......@@ -169,7 +169,7 @@ bool Foam::regIOobject::uptodate(const word& a) const
}
bool Foam::regIOobject::uptodate(const word& a, const word& b) const
bool Foam::regIOobject::upToDate(const word& a, const word& b) const
{
if
(
......@@ -186,7 +186,7 @@ bool Foam::regIOobject::uptodate(const word& a, const word& b) const
}
bool Foam::regIOobject::uptodate
bool Foam::regIOobject::upToDate
(
const word& a,
const word& b,
......@@ -209,7 +209,7 @@ bool Foam::regIOobject::uptodate
}
bool Foam::regIOobject::uptodate
bool Foam::regIOobject::upToDate
(
const word& a,
const word& b,
......@@ -234,8 +234,8 @@ bool Foam::regIOobject::uptodate
}
//- Flag me as uptodate
void Foam::regIOobject::setUptodate()
//- Flag me as up to date
void Foam::regIOobject::setUpToDate()
{
eventNo_ = db().getEvent();
}
......
......@@ -154,14 +154,20 @@ public:
inline label& eventNo();
//- Am I uptodate with respect to other regIOobjects
bool uptodate(const word&) const;
bool uptodate(const word&, const word&) const;
bool uptodate(const word&, const word&, const word&) const;
bool uptodate(const word&, const word&, const word&, const word&)
const;
//- Flag me as uptodate
void setUptodate();
bool upToDate(const word&) const;
bool upToDate(const word&, const word&) const;
bool upToDate(const word&, const word&, const word&) const;
bool upToDate
(
const word&,
const word&,
const word&,
const word&
) const;
//- Flag me as up to date
void setUpToDate();
// Edit
......
......@@ -649,6 +649,7 @@ typename
Foam::GeometricField<Type, PatchField, GeoMesh>::DimensionedInternalField&
Foam::GeometricField<Type, PatchField, GeoMesh>::dimensionedInternalField()
{
this->setUpToDate();
storeOldTimes();
return *this;
}
......@@ -659,6 +660,7 @@ typename
Foam::GeometricField<Type, PatchField, GeoMesh>::InternalField&
Foam::GeometricField<Type, PatchField, GeoMesh>::internalField()
{
this->setUpToDate();
storeOldTimes();
return *this;
}
......@@ -670,6 +672,7 @@ typename
Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricBoundaryField&
Foam::GeometricField<Type, PatchField, GeoMesh>::boundaryField()
{
this->setUpToDate();
storeOldTimes();
return boundaryField_;
}
......@@ -822,6 +825,7 @@ template<class Type, template<class> class PatchField, class GeoMesh>
void Foam::GeometricField<Type, PatchField, GeoMesh>::
correctBoundaryConditions()
{
this->setUpToDate();
storeOldTimes();
boundaryField_.evaluate();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment