* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
- * under the terms of the license (GNU LGPL) which comes with this package. */
+ * under the terms of the license (GNU LGPL) which comes with this package. */
#include "private.h"
#include "smpi_mpi_dt_private.h"
void smpi_process_finalize(void)
{
// wait for all pending asynchronous comms to finish
+ if(!MC_is_active())
while (SIMIX_process_has_pending_comms(SIMIX_process_self())) {
simcall_process_sleep(0.01);
}