Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
new tesh to check smpi tracing
[simgrid.git] / examples / smpi / bcbench.c
index b3b6a7b..b603bab 100644 (file)
@@ -1,3 +1,9 @@
+/* Copyright (c) 2009, 2010. 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 <stdlib.h>
 #include <mpi.h>
@@ -16,8 +22,8 @@ int main(int argc, char *argv[])
 
   int size, rank;
   int N;
-  struct timeval *start_time, *stop_time;
-  double seconds;
+  struct timeval *start_time = NULL, *stop_time = NULL;
+  double seconds = 0;
   int i, j;
   char *buffer;
   int check;