Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
try to cleanup how MPI process are created. First act.
[simgrid.git] / src / smpi / smpiff.in
index c63b524..75bbdba 100644 (file)
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# Copyright (c) 2012-2015. The SimGrid Team.
+# Copyright (c) 2012-2017. The SimGrid Team.
 # All rights reserved.
 
 # This program is free software; you can redistribute it and/or modify it
@@ -81,7 +81,8 @@ while [ $# -gt 0 ]; do
             ;;
         -o)
             NEEDS_OUTPUT=0
-            list_add CMDLINE "-o"   
+            list_add CMDLINE "-o$1"
+            shift
             ;;        
         *)
             list_add CMDLINE "${ARG}"