repo.or.cz
/
freefoam.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'upstream/OpenFOAM' into master
[freefoam.git]
/
applications
/
test
/
List
/
ListLoop.C
blob
a1d3034737e30e73789804f6c5fc1a66849d4597
1
#include <OpenFOAM/List.H>
2
#include <OpenFOAM/scalar.H>
3
4
using namespace Foam;
5
6
void func
7
(
8
List<scalar>& l1,
9
const List<scalar>& l2,
10
const List<label>& a1,
11
const List<label>& a2
12
)
13
{
14
forAll(l1, i)
15
{
16
l1[a1[i]] -= l2[a2[i]];
17
}
18
}
19
20
// ************************ vim: set sw=4 sts=4 et: ************************ //