Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
gcc likes it when you say 'please'.
authorpini <pini@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 25 Mar 2010 14:41:25 +0000 (14:41 +0000)
committerpini <pini@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 25 Mar 2010 14:41:25 +0000 (14:41 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7375 48e7efb5-ca39-0410-a469-dd3cf9ba447f

examples/smpi/bcbench.c
examples/smpi/mvmul.c

index b3b6a7b..8272646 100644 (file)
@@ -16,8 +16,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;
index dbaceb8..b76a15d 100644 (file)
@@ -14,9 +14,9 @@ int main(int argc, char *argv[])
 
   int size, rank;
   int N, n, i, j, k, current_iteration, successful_iterations = 0;
-  double *matrix, *vector, *vcalc, *vcheck;
+  double *matrix = NULL, *vector = NULL, *vcalc, *vcheck;
   MPI_Status status;
-  struct timeval *start_time, *stop_time;
+  struct timeval *start_time = NULL, *stop_time = NULL;
   long parallel_usecs, parallel_usecs_total =
     0, sequential_usecs, sequential_usecs_total = 0;