#!/bin/bash yes | cp ../context_grid_dynamico.xml ./ yes | cp ../dynamico_grid.nc ./ yes | cp ../user_config.py sub_config1.py yes | cp ../config.py sub_config2.py yes | cp ../check.py sub_check.py yes | cp ../default_param.py default_param.py # Black 0;30 Dark Gray 1;30 # Red 0;31 Light Red 1;31 # Green 0;32 Light Green 1;32 # Brown/Orange 0;33 Yellow 1;33 # Blue 0;34 Light Blue 1;34 # Purple 0;35 Light Purple 1;35 # Cyan 0;36 Light Cyan 1;36 # Light Gray 0;37 White 1;37 Color='\033[0;36m' NC='\033[0m' # No Color touch report.txt > report.txt echo " " >> report.txt echo " " >> report.txt echo -e "testing ${Color}domain${NC} algorithms..." >> report.txt echo " " >> report.txt touch report.html > report.html echo "
" >> report.html echo "
" >> report.html echo "
" >> report.html echo "

testing domain algorithms...

" >> report.html echo "
" >> report.html nb_config=$(python sub_config1.py 2>&1) counter=0 while [ $counter -lt $nb_config ] do rm -f user_param.py cp user_param.py.$counter user_param.py ((counter++)) nb_proc=$(python sub_config2.py 2>&1) if [[ ($machine_name == irene) ]] then ccc_mprun -n $nb_proc ../../build_prod/bin/generic_testcase.exe elif [[($machine_name == ada)]] then echo "Testing on ADA" mpirun -np $nb_proc ../../build_prod/bin/generic_testcase.exe elif [[($machine_name == jeanzay)]] then echo "Testing on Jean-Zay" srun -n $nb_proc --mpi=pmi2 ../../build_prod/bin/generic_testcase.exe else echo "other machine" fi python sub_check.py rm -f iodef.xml mv iodef.xml.bkp iodef.xml done rm -f default_param.py rm -f default_param.pyc rm -f user_param.pyc rm -f user_param.py.* rm -f sub_*.py