ENH: patchCloud: return pTraits<Type>::max for unfound points
[OpenFOAM-1.7.x.git] / applications / test / List / ListLoop.C
blob8695836db1d19a81f333611b8ef0dcad1fdbab7f
1 #include "List.H"
2 #include "scalar.H"
4 using namespace Foam;
6 void func
8     List<scalar>& l1,
9     const List<scalar>& l2,
10     const List<label>& a1,
11     const List<label>& a2
14     forAll(l1, i)
15     {
16         l1[a1[i]] -= l2[a2[i]];
17     }