+SIMOPTS="--cfg=maxmin/precision:1e-9 --cfg=network/model:SMPI --cfg=network/TCP_gamma:4194304"
+
+#usage to print the way this script should be called
+function usage () {
+cat <<EOF
+Usage: $0 [OPTIONS] -platform <xmldesc> -hostfile <hostfile> program [program-options]
+Options:
+ -keep-temps # don't remove the generated files after execution
+ -wrapper <command> # use command to run the program (e.g. "valgrind")
+ -map # display the machine on which each process rank is mapped
+ -np <numprocs> # use that amount of processes from the hostfile.
+ # By default, all processes of the hostfile are used.
+ -trace-ti # activate time independant tracing (for replay, default in smpi_simgrid.txt)
+ -trace # activate tracing (Paje, default in smpi_simgrid.trace)
+ -trace-comment <comment> # put a comment on the top of the trace file
+ -trace-comment-file <file> # put file contents on the top of the trace file as comment
+ -trace-grouped # group MPI processes by location
+ -trace-resource # trace resource utilization
+ -trace-viva # generate configuration for Viva's GraphView
+ -trace-file <tracefile> # name of the tracefile (simgrid_smpi.trace)
+ -ext <value> # additional parameter (reserved)
+
+or (deprecated usage):
+ $0 [-keep-temps] [-np <numprocs>] [-bandwidth <bytes/sec>] [-latency <secs>] program [program-options]
+
+EOF
+}
+
+#check if we have at least one parameter
+if [ $# -eq 0 ]
+then
+ usage
+ exit
+fi
+
+EXTOPT=""
+WRAPPER=""