X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c7ee408ae0b31b16935dce24d8fcc57d9aed4eb3..bdee40d2bc54baf9489148cbfbd6bd1fcd6469df:/examples/smpi/compute3.c diff --git a/examples/smpi/compute3.c b/examples/smpi/compute3.c index c31fb23f36..ad823a2c24 100644 --- a/examples/smpi/compute3.c +++ b/examples/smpi/compute3.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 @@ -7,7 +13,7 @@ int main(int argc, char *argv[]) double d; MPI_Init(&argc, &argv); d = 2.0; - SMPI_DO_ONCE { +/* SMPI_DO_ONCE */ { for (i = 0; i < atoi(argv[1]); i++) { if (d < 10000) { d = d * d; @@ -17,7 +23,7 @@ int main(int argc, char *argv[]) } printf("%d %f\n", i, d); } - SMPI_DO_ONCE { +/* SMPI_DO_ONCE */ { for (i = 0; i < 2 * atoi(argv[1]); i++) { if (d < 10000) { d = d * d;