| 460 | } |
| 461 | |
| 462 | void |
| 463 | Barrier (const std::string &message) |
| 464 | { |
| 465 | amrex::ignore_unused(message); |
| 466 | |
| 467 | #ifdef BL_LAZY |
| 468 | Lazy::EvalReduction(); |
| 469 | #endif |
| 470 | |
| 471 | BL_PROFILE_S("ParallelDescriptor::Barrier()"); |
| 472 | BL_COMM_PROFILE_BARRIER(message, true); |
| 473 | |
| 474 | BL_MPI_REQUIRE( MPI_Barrier(ParallelDescriptor::Communicator()) ); |
| 475 | |
| 476 | BL_COMM_PROFILE_BARRIER(message, false); |
| 477 | } |
| 478 | |
| 479 | void |
| 480 | Barrier (const MPI_Comm &comm, const std::string &message) |