+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 () {
+ echo "usage:"
+ echo "$0 [-keep-temps]"
+ echo " [-np <numprocs>] -platform <xmldesc> -hostfile <hostfile> [-map] program [program-options]"
+ echo " [-keep-temps] # don't remove the generated files after execution"
+ echo " [-map] # display the machine on which each process rank is mapped"
+ echo " [-np <numprocs>] # use that amount of processes from the hostfile."
+ echo " # By default, all processes of the hostfile are used."
+ echo " [-trace] # activate tracing"
+ echo " [-trace-comment <comment>]# put a comment on the top of the trace file"
+ echo " [-trace-comment-file <file>] # put file contents on the top of the trace file as comment"
+ echo " [-trace-grouped] # group MPI processes by location"
+ echo " [-trace-resource] # trace resource utilization"
+ echo " [-trace-triva] # generate configuration for Triva's GraphView"
+ echo " [-trace-file <tracefile>] # name of the tracefile (simgrid_smpi.trace)"
+ echo "or (deprecated usage):"
+ echo "$0 [-keep-temps] [-np <numprocs>] [-bandwidth <bytes/sec>] [-latency <secs>] program [program-options]"
+ echo
+}
+
+#check if we have at least one parameter
+if [ $# -eq 0 ]
+then
+ usage
+ exit
+fi
+