Files
OpenFOAM-12/applications/utilities/postProcessing/graphics/ensightFoamReader/getLagrangianScalar.H
Henry Weller ed7e703040 Time::timeName(): no longer needed, calls replaced by name()
The timeName() function simply returns the dimensionedScalar::name() which holds
the user-time name of the current time and now that timeName() is no longer
virtual the dimensionedScalar::name() can be called directly.  The timeName()
function implementation is maintained for backward-compatibility.
2022-11-30 15:53:51 +00:00

35 lines
574 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.name(),
cloud::prefix,
mesh,
IOobject::MUST_READ,
IOobject::NO_WRITE
)
);
if (s.size())
{
forAll(s, n)
{
var_array[n+1] = s[n];
}
}
}
else
{
// Info<< "getLagrangianScalar: nVar = " << nVar << endl;
return Z_UNDEF;
}