repo.or.cz
/
OpenFOAM-1.7.x.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ENH: patchCloud: return pTraits<Type>::max for unfound points
[OpenFOAM-1.7.x.git]
/
applications
/
test
/
List
/
ListLoop.C
blob
8695836db1d19a81f333611b8ef0dcad1fdbab7f
1
#include "List.H"
2
#include "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
}