#ifndef MAM_SPAWN_DATASTRUCTURE_H #define MAM_SPAWN_DATASTRUCTURE_H #include /* --- SPAWN STRUCTURE --- */ typedef struct { int spawn_qty; char *cmd; MPI_Info mapping; } Spawn_set; typedef struct { int opened_port; char *port_name, *service_name; char *remote_port, *remote_service; } Spawn_ports; typedef struct { int spawn_qty, initial_qty, target_qty; int already_created; int total_spawns; int spawn_is_single, spawn_is_async, spawn_is_intercomm, spawn_is_multiple, spawn_is_parallel; // MPI_Info mapping; int mapping_fill_method; MPI_Comm comm, returned_comm; // ONLY SET FOR SOURCE PROCESSES Spawn_set *sets; } Spawn_data; #endif