X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/97e2219ed6c0e511f6165460cec79afadf42f589..62874ae4e0258ec5335baeb5f52eade8d0b32f83:/src/mc/remote/AppSide.cpp?ds=sidebyside diff --git a/src/mc/remote/AppSide.cpp b/src/mc/remote/AppSide.cpp index e222ab7865..2d4dfbea70 100644 --- a/src/mc/remote/AppSide.cpp +++ b/src/mc/remote/AppSide.cpp @@ -30,8 +30,7 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_client, mc, "MC client logic"); -namespace simgrid { -namespace mc { +namespace simgrid::mc { std::unique_ptr AppSide::instance_; @@ -138,8 +137,8 @@ void AppSide::handle_finalize(const s_mc_message_int_t* msg) const if (XBT_LOG_ISENABLED(mc_client, xbt_log_priority_debug)) kernel::EngineImpl::get_instance()->display_all_actor_status(); #if HAVE_SMPI - XBT_DEBUG("Smpi_enabled: %d", (int)smpi_enabled()); - if (smpi_enabled()) + XBT_DEBUG("Smpi_enabled: %d", SMPI_is_inited()); + if (SMPI_is_inited()) SMPI_finalize(); #endif } @@ -284,5 +283,4 @@ void AppSide::declare_stack(void* stack, size_t size, ucontext_t* context) const message.stack_region = region; xbt_assert(channel_.send(message) == 0, "Could not send STACK_REGION to model-checker"); } -} // namespace mc -} // namespace simgrid +} // namespace simgrid::mc