X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/865f97c868ce92518b1cf4f23e23bd1b16b7917c..189b3a120727fbd5931127889d72d073efeb2d30:/examples/smpi/split.c diff --git a/examples/smpi/split.c b/examples/smpi/split.c index f451b877af..a3bb58fd63 100644 --- a/examples/smpi/split.c +++ b/examples/smpi/split.c @@ -1,10 +1,18 @@ +/* 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 int main(int argc, char *argv[]) { - int worldrank, localrank; + int worldrank; + int localrank; MPI_Comm localcomm; + MPI_Init(&argc, &argv); MPI_Comm_rank(MPI_COMM_WORLD, &worldrank); MPI_Comm_split(MPI_COMM_WORLD, worldrank % 2, worldrank, &localcomm);