#include #include #include #include #include #include //#include #include #include "../IOcodes/results.h" #include "malleabilityZombies.h" #define PIDS_QTY 320 void zombies_suspend(); int offset_pids, *pids = NULL; void gestor_usr2() {} void zombies_collect_suspended(MPI_Comm comm, int myId, int numP, int numC, int root, void *results_void) { int pid = getpid(); int *pids_counts = malloc((size_t)numP * sizeof(int)); int *pids_displs = malloc((size_t)numP * sizeof(int)); int i, count=1; if(myId < numC) { count = 0; if(myId == root) { for(i=0; i < numC; i++) { pids_counts[i] = 0; } for(i=numC; i= numC) { zombies_suspend(); } } void zombies_service_init() { offset_pids = 0; pids = malloc(PIDS_QTY * sizeof(int)); for(int i=0; i