X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9104957deccc59e0e804215d5db498fabfd40d29..02a6df2bc7e1c28a70a33e28bf5589f6f90e4404:/teshsuite/smpi/topo-cart-sub/topo-cart-sub.c diff --git a/teshsuite/smpi/topo-cart-sub/topo-cart-sub.c b/teshsuite/smpi/topo-cart-sub/topo-cart-sub.c index e0c4146b96..afb0917932 100644 --- a/teshsuite/smpi/topo-cart-sub/topo-cart-sub.c +++ b/teshsuite/smpi/topo-cart-sub/topo-cart-sub.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2009-2020. The SimGrid Team. +/* Copyright (c) 2009-2023. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -64,15 +64,15 @@ int main(int argc, char** argv) MPI_Comm_rank(MPI_COMM_WORLD, &rank); MPI_Comm_size(MPI_COMM_WORLD, &nbNodes); - printf("rank %d: Alive \n", rank); + printf("rank %d: Alive\n", rank); MPI_Barrier(MPI_COMM_WORLD); - /* Set dims[] values to descibe a grid of nbNodes and DIM dimensions*/ + /* Set dims[] values to describe a grid of nbNodes and DIM dimensions*/ MPI_Cart_create(MPI_COMM_WORLD, DIM, dims, periods, reorder, &gridComm); if (gridComm == MPI_COMM_NULL) - printf("error grid NULLCOMM \n"); + printf("error grid NULLCOMM\n"); MPI_Comm_rank(gridComm, &myGridRank); MPI_Comm_size(gridComm, &gridSize); @@ -105,12 +105,12 @@ int main(int argc, char** argv) MPI_Bcast(A, N * N, MPI_INT, root, lineComm); /* Print A */ - printf("process:(%d,%d) \n", myLineRank, myColRank); + printf("process:(%d,%d)\n", myLineRank, myColRank); printf("-------------------\n"); for (int i = 0; i < N; i++) { for (int j = 0; j < N; j++) { - printf("%d ", *(A + (i * N) + j)); + printf(" %d", *(A + (i * N) + j)); } printf("\n"); }