| 6 | using namespace amrex; |
| 7 | |
| 8 | void test_atomicAdd (MultiFab& mf) |
| 9 | { |
| 10 | |
| 11 | #ifdef AMREX_USE_OMP |
| 12 | #pragma omp parallel |
| 13 | #endif |
| 14 | { |
| 15 | FArrayBox tmp; |
| 16 | for (MFIter mfi(mf,true); mfi.isValid(); ++mfi) { |
| 17 | Box const& tbx = mfi.growntilebox(); |
| 18 | tmp.resize(tbx); |
| 19 | tmp.template setVal<RunOn::Host>(0.2); |
| 20 | mf[mfi].template atomicAdd<RunOn::Host>(tmp, tbx, tbx, 0, 0, 1); |
| 21 | } |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | void test_lockAdd (MultiFab& mf) |
| 26 | { |
no test coverage detected