| 5 | FuncQue reduction_queue; |
| 6 | |
| 7 | void QueueReduction (Func f) // NOLINT |
| 8 | { |
| 9 | #ifdef BL_USE_MPI |
| 10 | reduction_queue.push_back(f); |
| 11 | const int max_queue_size = 64; |
| 12 | if (reduction_queue.size() >= max_queue_size) { |
| 13 | EvalReduction(); |
| 14 | } |
| 15 | #else |
| 16 | f(); |
| 17 | #endif |
| 18 | } |
| 19 | |
| 20 | void EvalReduction () |
| 21 | { |
no test coverage detected