Commit f99dd34d authored by iker_martin's avatar iker_martin
Browse files

Minor bug fix for zombies and added extern for MAM main structures

parent 2ae14d8e
#include "malleabilityDataStructures.h"
malleability_config_t *mall_conf = NULL;
malleability_t *mall = NULL;
int state = MALL_UNRESERVED;
/*
......
......@@ -54,8 +54,8 @@ typedef struct {
} malleability_t;
/* --- VARIABLES --- */
malleability_config_t *mall_conf;
malleability_t *mall;
extern malleability_config_t *mall_conf;
extern malleability_t *mall;
extern int state;
/* --- FUNCTIONS --- */
......
......@@ -94,7 +94,7 @@ void MAM_I_zombies_split() {
MPI_Comm_split(mall->original_comm, color, myId, &new_original_comm);
if(mall->original_comm != MPI_COMM_WORLD) MPI_Comm_free(&mall->original_comm);
MPI_Comm_set_name(new_original_comm, "MAM_ORIGINAL");
if(new_original_comm != MPI_COMM_NULL) MPI_Comm_set_name(new_original_comm, "MAM_ORIGINAL");
mall->original_comm = new_original_comm;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment