tutorial/12.buddycr.c
/* repair comm world, reload checkpoints, etc...
 *  Return: true: the app needs to redo some iterations
 *          false: no failure was fixed, we do not need to redo any work.
 */
repair comm world, reload checkpoints, etc
Return: true: the app needs to redo some iterations
false: no failure was fixed, we do not need to redo any work.
repair comm world reload checkpoints etc Return : true : the app needs to redo some iterations false : no failure was fixed we do not need to redo any work .
static int app_needs_repair(void) {
    MPI_Comm tmp;
    MPIX_Comm_replace(world, &tmp);
    if( tmp == world ) return false;
    if( MPI_COMM_NULL != world) MPI_Comm_free(&world);
    world = tmp;
    app_reload_ckpt(world);
    return true;
}
static int app_needs_repair ( void ) { MPI_Comm tmp ; MPIX_Comm_replace ( world , & tmp ) ; if ( tmp == world ) return false ; if ( MPI_COMM_NULL != world ) MPI_Comm_free ( & world ) ; world = tmp ; app_reload_ckpt ( world ) ; return true ; }
repair comm world, reload checkpoints, etc...
  Return: true: the app needs to redo some iterations
          false: no failure was fixed, we do not need to redo any work.
repair comm world reload checkpoints etc ... Return : true : the app needs to redo some iterations false : no failure was fixed we do not need to redo any work .
/* Report that world has changed and we need to re-execute */