Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Have some mpich3 tests use the automatic privatization instead of manual one.
[simgrid.git] / teshsuite / smpi / hvector_test.c
index 86d1a40..f37f234 100644 (file)
@@ -1,3 +1,9 @@
+/* Copyright (c) 2012-2014. The SimGrid Team.
+ * All rights reserved.                                                     */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
 #include <stdio.h>
 #include "mpi.h"
 #define SIZE 4
@@ -5,7 +11,7 @@
 int main(int argc, char **argv) {
 
   int rank, i, j;
-  double a[SIZE][SIZE];
+  double a[SIZE][SIZE] = {{0}};
 
   MPI_Datatype columntype;
 
@@ -35,7 +41,7 @@ int main(int argc, char **argv) {
     }
 
 
-
+  MPI_Type_free(&columntype);
   MPI_Finalize();
   return 0;
 }