33template<
class GeoFieldType>
39 auto* ptr = mesh_.getObjectPtr<GeoFieldType>(fieldName);
43 ptr =
new GeoFieldType
48 mesh_.time().timeName(),
@ REGISTER
Request registration (bool: true).
@ MUST_READ
Reading required.
@ AUTO_WRITE
Automatically write from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
bool store()
Register object with its registry and transfer ownership to the registry.
GeoFieldType & getOrReadField(const word &fieldName) const
Return requested field from the object registry or read+register the field to the object registry.
A class for handling words, derived from Foam::string.