]> AND Public Git Repository - simgrid.git/blobdiff - examples/smpi/replay_multiple/replay_multiple.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
[simgrid.git] / examples / smpi / replay_multiple / replay_multiple.c
index ebb03f3d7f179b883768e0a6d5b3a81168422ec3..2dc72e2b2a8d67adb061411d3593195249eba151 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2009-2017. The SimGrid Team.
+/* Copyright (c) 2009-2018. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -21,6 +21,7 @@ int main(int argc, char *argv[]){
   msg_error_t res;
 
   MSG_init(&argc, argv);
+  SMPI_init();
 
   xbt_assert(argc > 3, "Usage: %s description_file platform_file deployment_file\n"
              "\tExample: %s smpi_multiple_apps msg_platform.xml msg_deployment.xml\n", argv[0], argv[0]);
@@ -54,7 +55,6 @@ int main(int argc, char *argv[]){
   fclose(fp);
 
   MSG_launch_application(argv[3]);
-  SMPI_init();
 
   res = MSG_main();