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

Function New

src/meshTools/coordinateSystems/coordinateSystems.C:70–96  ·  view source on GitHub ↗

Read construct from registry, or return previously registered

Source from the content-addressed store, hash-verified

68
69// Read construct from registry, or return previously registered
70const Foam::coordinateSystems& Foam::coordinateSystems::New
71(
72 const objectRegistry& obr
73)
74{
75 if (obr.foundObject<coordinateSystems>(typeName))
76 {
77 return obr.lookupObject<coordinateSystems>(typeName);
78 }
79 else
80 {
81 return obr.store
82 (
83 new coordinateSystems
84 (
85 IOobject
86 (
87 typeName,
88 obr.time().constant(),
89 obr,
90 IOobject::READ_IF_PRESENT,
91 IOobject::NO_WRITE
92 )
93 )
94 );
95 }
96}
97
98
99// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //

Callers 15

coordinateSystem.CFile · 0.70
initFunction · 0.70
operator()Method · 0.50
operator()Method · 0.50
operator()Method · 0.50
operator()Method · 0.50
radial.CFile · 0.50
doSnapFunction · 0.50
addLayersFunction · 0.50
meshRefinement.CFile · 0.50

Calls 4

coordinateSystemsClass · 0.85
storeMethod · 0.80
timeMethod · 0.80
IOobjectClass · 0.50

Tested by

no test coverage detected