]> AND Public Git Repository - simgrid.git/blobdiff - teshsuite/smpi/mpich3-test/comm/dup_with_info.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
removed random seed in order to test result
[simgrid.git] / teshsuite / smpi / mpich3-test / comm / dup_with_info.c
index c0472c0b4c57ad96c77cafc6f6ed64dd21e1a05d..f585a8172795f334daafff6d0921bde153ff069d 100644 (file)
@@ -7,8 +7,8 @@
 #include "mpi.h"
 #include <stdio.h>
 #include "mpitest.h"
-int run_tests(MPI_Comm comm);
-int run_tests(MPI_Comm comm)
+
+static int run_tests(MPI_Comm comm)
 {
     int rank, size, wrank, wsize, dest, a, b, errs = 0;
     MPI_Status status;
@@ -28,6 +28,7 @@ int run_tests(MPI_Comm comm)
     MPI_Barrier(comm);
 
     /* Can we communicate with this new communicator? */
+    dest = MPI_PROC_NULL;
     if (rank == 0) {
         dest = size - 1;
         a = rank;