Skip to content

Commit

Permalink
alt fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wxtim committed Mar 31, 2022
1 parent c0cedca commit a4e6f31
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions metomi/rose/scripts/rose-mpi-launch
Original file line number Diff line number Diff line change
Expand Up @@ -237,14 +237,9 @@ fi
ROSE_LAUNCHER_BASE=
if [[ -n $ROSE_LAUNCHER ]]; then
# Path
ROSE_LAUNCHER_PATH=""
for command in ${ROSE_LAUNCHER}; do
if command="$(type -P $command)"; then
ROSE_LAUNCHER_PATH="${ROSE_LAUNCHER_PATH} ${command}"
else
err "ROSE_LAUNCHER: $ROSE_LAUNCHER: command not found"
fi
done
if ! ROSE_LAUNCHER_PATH="$(type -P $ROSE_LAUNCHER)"; then
err "ROSE_LAUNCHER: $ROSE_LAUNCHER: command not found"
fi
ROSE_LAUNCHER=$ROSE_LAUNCHER_PATH
ROSE_LAUNCHER_BASE="$(basename "$ROSE_LAUNCHER")"
fi
Expand Down Expand Up @@ -278,7 +273,7 @@ else
ROSE_LAUNCHER_POSTOPTS=
fi
if ((ROSE_VERBOSITY >= 3)); then
info 3 printenv
info 3 printen
printenv | sort
run ldd "$ROSE_COMMAND" || true 2>/dev/null
fi
Expand Down

0 comments on commit a4e6f31

Please sign in to comment.