X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/30828b2cedfd5dac27dbfcdf0c02a0ae48b87d3b..53ef75ab57752782c82fd7c106626a772940dd0a:/teshsuite/smpi/mpich3-test/coll/coll6.c diff --git a/teshsuite/smpi/mpich3-test/coll/coll6.c b/teshsuite/smpi/mpich3-test/coll/coll6.c index e0973f9a1b..077cdcd15d 100644 --- a/teshsuite/smpi/mpich3-test/coll/coll6.c +++ b/teshsuite/smpi/mpich3-test/coll/coll6.c @@ -9,87 +9,84 @@ #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 errors=0; - int participants; - int displs[MAX_PROCESSES]; - int recv_counts[MAX_PROCESSES]; - MPI_Comm test_comm; + int rank, size, i, j; + int table[MAX_PROCESSES][MAX_PROCESSES]; + int errors = 0; + int participants; + int displs[MAX_PROCESSES]; + int recv_counts[MAX_PROCESSES]; + MPI_Comm test_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); /* A maximum of MAX_PROCESSES processes can participate */ - participants = ( size > MAX_PROCESSES ) ? MAX_PROCESSES : size; + participants = (size > MAX_PROCESSES) ? MAX_PROCESSES : size; if (MAX_PROCESSES % participants) { - fprintf( stderr, "Number of processors must divide %d\n", - MAX_PROCESSES ); - MPI_Abort( MPI_COMM_WORLD, 1 ); - exit(1); - } - MPI_Comm_split(MPI_COMM_WORLD, rank