ENH: autoLayerDriver: better layering information message
[OpenFOAM-2.0.x.git] / applications / utilities / postProcessing / graphics / ensightFoamReader / getLagrangianVector.H
blob31e4bc729c93dfaa5d2fabe2229cacc3c783b097
2 // Not sure if this is necessary anymore
4 nVar -= Num_variables - nSprayVariables + lagrangianScalarNames.size();
6 if (nVar >= 0)
8     word name = lagrangianVectorNames[nVar];
10     IOField<vector> v
11     (
12         IOobject
13         (
14             name,
15             runTime.timeName(),
16             cloud::prefix,
17             mesh,
18             IOobject::MUST_READ,
19             IOobject::NO_WRITE
20         )
21     );
23     if (v.size())
24     {
25         forAll(v, n)
26         {
27             if (component == 0)
28             {
29                 var_array[n+1] = v[n].x();
30             }
31             else if (component == 1)
32             {
33                 var_array[n+1] = v[n].y();
34             }
35             else if (component == 2)
36             {
37                 var_array[n+1] = v[n].z();
38             }
39         }
40     }
42 else
44     // Info<< "getLagrangianVector: nVar = " << nVar << endl;
45     return Z_UNDEF;