repo.or.cz
/
OpenFOAM-1.5.x.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
initial commit for version 1.5.x patch release
[OpenFOAM-1.5.x.git]
/
applications
/
utilities
/
postProcessing
/
graphics
/
ensightFoamReader
/
getLagrangianScalar.H
blob
de8f4ffaf9894e4f90fc615ae27fd5c45f50ed12
1
2
// Not sure if this is necessary anymore
3
nVar -= Num_variables - nSprayVariables;
4
5
if (nVar >= 0)
6
{
7
8
word name = lagrangianScalarNames[nVar];
9
10
IOField<scalar> s
11
(
12
IOobject
13
(
14
name,
15
runTime.timeName(),
16
"lagrangian",
17
mesh,
18
IOobject::MUST_READ,
19
IOobject::NO_WRITE
20
)
21
);
22
23
if (s.size() != 0)
24
{
25
26
for
27
(
28
label n = 0;
29
n < s.size();
30
n++
31
)
32
{
33
var_array[n+1] = s[n];
34
}
35
}
36
}
37
else
38
{
39
//Info << "getLagrangianScalar: nVar = " << nVar << endl;
40
return Z_UNDEF;
41
}
42