This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/applications/utilities/postProcessing/graphics/newEnsightFoamReader/getLagrangianScalar.H
2013-07-18 10:15:54 +02:00

42 lines
663 B
C

// Not sure if this is necessary anymore
nVar -= Num_variables - nSprayVariables;
if (nVar >= 0)
{
word name = lagrangianScalarNames[nVar];
IOField<scalar> s
(
IOobject
(
name,
runTime.timeName(),
"lagrangian",
mesh,
IOobject::MUST_READ,
IOobject::NO_WRITE
)
);
if (s.size() != 0)
{
for
(
label n = 0;
n < s.size();
n++
)
{
var_array[n+1] = s[n];
}
}
}
else
{
//Info << "getLagrangianScalar: nVar = " << nVar << endl;
return Z_UNDEF;
}