functionObjects::age: Added caching of the age field

to allow post-processing, e.g. sampling, cutting planes, averaging etc.
This commit is contained in:
Henry Weller
2019-10-10 16:16:24 +01:00
parent a2a74cbb79
commit e62ded842f
5 changed files with 64 additions and 25 deletions

View File

@ -86,11 +86,15 @@ protected:
template<class ObjectType>
ObjectType& lookupObjectRef(const word& fieldName);
//- Store the given field in the objectRegistry
template<class ObjectType>
bool store(const tmp<ObjectType>& tfield);
//- Store the given field in the objectRegistry under the given name
template<class ObjectType>
bool store
(
word& fieldName,
const word& fieldName,
const tmp<ObjectType>& tfield,
bool cacheable = false
);