X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d65d1121602ae06e7c9854a07099aaaa60f40bbd..2242ae29028361ce4bd42199925b40b7367c3ee4:/examples/smpi/mvmul.c diff --git a/examples/smpi/mvmul.c b/examples/smpi/mvmul.c index dbaceb826a..18b34203f4 100644 --- a/examples/smpi/mvmul.c +++ b/examples/smpi/mvmul.c @@ -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 #include #include @@ -14,9 +20,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;