forked from FreeFem/FreeFem-sources
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CheckAll
executable file
·28 lines (26 loc) · 836 Bytes
/
CheckAll
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
test -x ./src/nw/FreeFem++-nw && ff=../src/nw/FreeFem++ || ff=`which FreeFem++`
test -x ./src/mpi/ff-mpirun && ffmpi=../src/mpi/ff-mpirun || ffmpi=`which ff-mpirun`
if [ -x ./src/bin/FreeFem++-nw.exe ] ; then ff=../src/bin/FreeFem++-nw.exe; fi
if [ -x ./src/bin-win32/FreeFem++-nw.exe ] ; then ff=../src/bin-win32/FreeFem++-nw.exe; fi
if [ -x ./src/mpi/ff-mpirun ] ; then ffmpi=../src/mpi/ff-mpirun; fi
rm CheckAll-out
for i in examples++*/.; do
cd $i;
case $i in
*mpi/.|*hpddm/.) ;;
*) echo ---- $i ---
../CheckAllEdp "$ff -nw" *.edp | tee -a ../CheckAll-out ;;
esac;
cd ..;
done
if [ -n "$ffmpi" ] ; then
for i in examples++*/.; do
cd $i;
case $i in
*mpi/.|*hpddm/.)
echo MPI ---- $i ---
../CheckAllEdp "$ffmpi -np 4" *.edp | tee -a ../CheckAll-out;;
esac;
cd ..;
done
fi