X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3a1ea70a418f393ca1677074e928c664022295bd..5ed37babb2fa9097abe82df299c0aa259ed84d5a:/examples/smpi/replay_multiple/generate_multiple_deployment.sh diff --git a/examples/smpi/replay_multiple/generate_multiple_deployment.sh b/examples/smpi/replay_multiple/generate_multiple_deployment.sh index aab51a4e9f..56da4ad919 100755 --- a/examples/smpi/replay_multiple/generate_multiple_deployment.sh +++ b/examples/smpi/replay_multiple/generate_multiple_deployment.sh @@ -1,6 +1,6 @@ #!/usr/bin/env sh -# Copyright (c) 2007-2020. The SimGrid Team. All rights reserved. +# Copyright (c) 2007-2023. 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. @@ -65,7 +65,7 @@ while [ $# -gt 0 ]; do ;; *) PROC_ARGS="${PROC_ARGS:+$PROC_ARGS }$1" - shift + shift ;; esac done @@ -135,13 +135,13 @@ if [ -n "${DESCRIPTIONFILE}" ] && [ -f "${DESCRIPTIONFILE}" ]; then instance=$(echo "$line"|cut -d' ' -f1) hosttrace=$(tr '\n\r' ' ' < $(echo "$line"|cut -d' ' -f2)) NUMPROCSMINE=$(wc -l < $(echo "$line"|cut -d' ' -f2)) - + if [ $NUMPROCSMINE != $(echo "$line"|cut -d' ' -f3) ]; then echo "declared num of processes for instance $instance : $(echo "$line"|cut -d' ' -f3) is not the same as the one in the replay files : $NUMPROCSMINE. Please check consistency of these information" exit 1 fi - + sleeptime=$(echo "$line"|cut -d' ' -f4) HAVE_SEQ=$(which seq 2>/dev/null) @@ -179,7 +179,7 @@ if [ -n "${DESCRIPTIONFILE}" ] && [ -f "${DESCRIPTIONFILE}" ]; then echo " " echo " " echo " " - + echo " " echo " " } >> "${APPLICATIONTMP}"