Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remove debug stuff added by mistake...
authorAugustin Degomme <adegomme@users.noreply.github.com>
Wed, 4 Dec 2019 21:47:01 +0000 (22:47 +0100)
committerAugustin Degomme <adegomme@users.noreply.github.com>
Wed, 4 Dec 2019 21:47:01 +0000 (22:47 +0100)
teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c

index c395917..dcaf7e6 100644 (file)
@@ -8,7 +8,6 @@
 
 #include <stdio.h>
 #include <mpi.h>
 
 #include <stdio.h>
 #include <mpi.h>
-#include <stdlib.h>
 
 static void test_opts(int* argc, char **argv[]){
   int found = 0;
 
 static void test_opts(int* argc, char **argv[]){
   int found = 0;
@@ -31,8 +30,6 @@ int main(int argc, char *argv[])
   int rank;
   int msg = 99;
   MPI_Status status;
   int rank;
   int msg = 99;
   MPI_Status status;
-  int* test = (int*)malloc(8);
-
   int err = MPI_Init(&argc, &argv); /* Initialize MPI */
 
   /* test getopt function */
   int err = MPI_Init(&argc, &argv); /* Initialize MPI */
 
   /* test getopt function */
@@ -75,7 +72,6 @@ int main(int argc, char *argv[])
       MPI_Send(&msg, 1, MPI_INT, src, tag2, MPI_COMM_WORLD);
     }
   }
       MPI_Send(&msg, 1, MPI_INT, src, tag2, MPI_COMM_WORLD);
     }
   }
-  free(test);
   MPI_Finalize();
   return 0;
 }
   MPI_Finalize();
   return 0;
 }