| 110 | } |
| 111 | |
| 112 | void Wait () |
| 113 | { |
| 114 | #ifdef AMREX_USE_MPI |
| 115 | const int N = s_info.ispot; |
| 116 | if (N > 0) { |
| 117 | Vector<MPI_Request> reqs(N); |
| 118 | Vector<MPI_Status> stats(N); |
| 119 | for (int i = 0; i < N; ++i) { |
| 120 | reqs[i] = ParallelDescriptor::Abarrier(s_comm).req(); |
| 121 | } |
| 122 | ParallelDescriptor::Waitall(reqs, stats); |
| 123 | } |
| 124 | #endif |
| 125 | } |
| 126 | |
| 127 | void Notify () |
| 128 | { |