X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d0ffc37686edcc803601f76ab51fdfed5fc2f241..90f50bba185f1c86225aa498dcc3a01c9080b52b:/teshsuite/smpi/mpich3-test/coll/coll4.c diff --git a/teshsuite/smpi/mpich3-test/coll/coll4.c b/teshsuite/smpi/mpich3-test/coll/coll4.c index cd39065287..42afb47c36 100644 --- a/teshsuite/smpi/mpich3-test/coll/coll4.c +++ b/teshsuite/smpi/mpich3-test/coll/coll4.c @@ -9,52 +9,52 @@ #define MAX_PROCESSES 10 -int main( int argc, char **argv ) +int main(int argc, char **argv) { - int rank, size, i,j; - int table[MAX_PROCESSES][MAX_PROCESSES]; - int row[MAX_PROCESSES]; - int errors=0; - int participants; - MPI_Comm comm; + int rank, size, i, j; + int table[MAX_PROCESSES][MAX_PROCESSES]; + int row[MAX_PROCESSES]; + int errors = 0; + int participants; + MPI_Comm comm; - MTest_Init( &argc, &argv ); - MPI_Comm_rank( MPI_COMM_WORLD, &rank ); - MPI_Comm_size( MPI_COMM_WORLD, &size ); + MTest_Init(&argc, &argv); + MPI_Comm_rank(MPI_COMM_WORLD, &rank); + MPI_Comm_size(MPI_COMM_WORLD, &size); comm = MPI_COMM_WORLD; /* A maximum of MAX_PROCESSES processes can participate */ - if ( size > MAX_PROCESSES ) { - participants = MAX_PROCESSES; - MPI_Comm_split( MPI_COMM_WORLD, rank < MAX_PROCESSES, rank, &comm ); + if (size > MAX_PROCESSES) { + participants = MAX_PROCESSES; + MPI_Comm_split(MPI_COMM_WORLD, rank < MAX_PROCESSES, rank, &comm); } - else { - participants = size; - MPI_Comm_dup( MPI_COMM_WORLD, &comm ); + else { + participants = size; + MPI_Comm_dup(MPI_COMM_WORLD, &comm); } - if ( (rank < participants) ) { - int send_count = MAX_PROCESSES; - int recv_count = MAX_PROCESSES; - - /* If I'm the root (process 0), then fill out the big table */ - if (rank == 0) - for ( i=0; i