int comm_size =smpi_comm_size(comm);
if(smpi_privatize_global_variables){ //we need to switch here, as the called function may silently touch global variables
int comm_size =smpi_comm_size(comm);
if(smpi_privatize_global_variables){ //we need to switch here, as the called function may silently touch global variables