ENH: autoLayerDriver: better layering information message
[OpenFOAM-2.0.x.git] / applications / utilities / postProcessing / graphics / ensightFoamReader / getLagrangianScalar.H
blobdd20ba0db8c765b6f5e85d3ff55cad9e755c60c6
2 // Not sure if this is necessary anymore
3 nVar -= Num_variables - nSprayVariables;
5 if (nVar >= 0)
7     word name = lagrangianScalarNames[nVar];
9     IOField<scalar> s
10     (
11         IOobject
12         (
13             name,
14             runTime.timeName(),
15             cloud::prefix,
16             mesh,
17             IOobject::MUST_READ,
18             IOobject::NO_WRITE
19         )
20     );
22     if (s.size())
23     {
24         forAll(s, n)
25         {
26             var_array[n+1] = s[n];
27         }
28     }
30 else
32     // Info<< "getLagrangianScalar: nVar = " << nVar << endl;
33     return Z_UNDEF;