FreeFOAM The Cross-Platform CFD Toolkit
getLagrangianScalar.H
Go to the documentation of this file.
1 
2 // Not sure if this is necessary anymore
4 
5 if (nVar >= 0)
6 {
8 
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  );
21 
22  if (s.size())
23  {
24  for (label n = 0; n < s.size(); n++)
25  {
26  var_array[n+1] = s[n];
27  }
28  }
29 }
30 else
31 {
32  // Info << "getLagrangianScalar: nVar = " << nVar << endl;
33  return Z_UNDEF;
34 }
35 
36 
37 // ************************ vim: set sw=4 sts=4 et: ************************ //