MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / subRegistry

Function subRegistry

src/OpenFOAM/db/objectRegistry/objectRegistry.C:155–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153
154
155const Foam::objectRegistry& Foam::objectRegistry::subRegistry
156(
157 const word& name,
158 const bool forceCreate
159) const
160{
161 if (forceCreate && !foundObject<objectRegistry>(name))
162 {
163 objectRegistry* fieldsCachePtr = new objectRegistry
164 (
165 IOobject
166 (
167 name,
168 time().constant(),
169 *this,
170 IOobject::NO_READ,
171 IOobject::NO_WRITE
172 )
173 );
174 fieldsCachePtr->store();
175 }
176 return lookupObject<objectRegistry>(name);
177}
178
179
180Foam::label Foam::objectRegistry::getEvent() const

Callers

nothing calls this directly

Calls 3

storeMethod · 0.80
objectRegistryClass · 0.70
IOobjectClass · 0.50

Tested by

no test coverage detected