db7fac3f24
git-svn-id: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev@1731 e4e07f05-0c2f-0410-a05a-b8ba57e0c909
42 lines
667 B
C
42 lines
667 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;
|
|
}
|
|
|