X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5fa8d6780a107eb5ae1ff8a233b0dd23cb065f8a..66934906303205eef608e3463db03af6c7ac8f52:/teshsuite/smpi/struct_test.c diff --git a/teshsuite/smpi/struct_test.c b/teshsuite/smpi/struct_test.c index 5c73e385f3..658f51a57c 100644 --- a/teshsuite/smpi/struct_test.c +++ b/teshsuite/smpi/struct_test.c @@ -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 #include "mpi.h" @@ -51,7 +57,7 @@ char **argv; MPI_Bcast( &value, 1, mystruct, 0, MPI_COMM_WORLD ); - printf( "Process %d got %d (-2?) and %lf (8.0?), tab (should be all 0): ", rank, value.a, value.b ); + printf( "Process %d got %d (-2?) and %f (8.0?), tab (should be all 0): ", rank, value.a, value.b ); for(j=0; j<2;j++ ) for(i=0; i<3;i++ ) @@ -62,6 +68,7 @@ char **argv; /* Clean up the type */ MPI_Type_free( &mystruct ); + MPI_Type_free( &type2 ); MPI_Finalize( ); return 0; }