CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   What is the equivalent of hook function of PtrList in v14 (https://www.cfd-online.com/Forums/openfoam-solving/59671-what-equivalent-hook-function-ptrlist-v14.html)

liu May 30, 2007 17:27

I have old code in v1.3 like t
 
I have old code in v1.3 like this:

PtrList<volvectorfield> VdjList_;
...

VdjList_.hook
(
new volVectorField
(
IOobject
(
"Vdj" + groupName,
mesh.time().timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
)
);

hjasak May 30, 2007 17:30

It's set - give it an index.
 
It's set - give it an index.

Hrv


All times are GMT -4. The time now is 20:14.