Merge branch 'upstream/OpenFOAM' into master
[freefoam.git] / applications / test / List / ListLoop.C
bloba1d3034737e30e73789804f6c5fc1a66849d4597
1 #include <OpenFOAM/List.H>
2 #include <OpenFOAM/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     }
20 // ************************ vim: set sw=4 sts=4 et: ************************ //