repo.or.cz
/
foam-extend-3.2.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Forward compatibility: flex
[foam-extend-3.2.git]
/
applications
/
utilities
/
postProcessing
/
graphics
/
newEnsightFoamReader
/
getLagrangianScalar.H
blob
02582ae8728fd0715c41759a46110f3bec9fb126
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