/usr/bin/ff-mpirun is in freefem++ 3.26-2-3.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | #!/bin/bash
# ./config.status --file=ff-mpirun:ff-mpirun.in
mpirun=mpirun
dir=`dirname $0`
prefix="/usr"
exec_prefix="${prefix}"
bindir="${exec_prefix}/bin"
nw=1
if [ -n "/usr/bin/mpirun" ] ;then mpirun="/usr/bin/mpirun" ; fi
ffmpi=FreeFem++-mpi
if [ -x "$0" -a -x "$dir/$ffmpi" ]; then ffmpi="$dir/$ffmpi"; fi
if [ -d "$bindir" ] ;then export PATH="${exec_prefix}/bin:$PATH" ; fi
a[0]="'$mpirun'"
j=1;
#echo $1 ---
while test -n "$1" ; do
((j=$j+1))
#((j1=$j+1))
#echo --- $1 -- $j1 $j
case "$1" in
"-nw") nw=1;;
"-win") nw=0;;
*.edp) a[$j]="${ffmpi}";
if [ "$nw" -eq 1 ]; then ((j=$j+1));a[$j]="-nw"; fi
((j=$j+1));a[$j]="$1";;
#if[ ! -f "$1" ]; then echo error file no found "$1"; dry=2; fi;;
-dry) dry=1;;
*) a[$j]="$1";;
esac
shift
done
echo "${a[*]}"
if [ -n "$dry" ]; then echo which $ffmpi : `which "$ffmpi"`; fi
if [ -z "$dry" ]; then eval "${a[*]}"; fi
|