Mercurial > repos > siwaa > stics4carsolel
comparison stics4carsolel.bash @ 2:5e581bfc5341 draft
"planemo upload for repository https://forgemia.inra.fr/record/carsolel/-/tree/master/tools commit c44e3ffa39b80279cb3226522f2b4f95f737e061"
author | siwaa |
---|---|
date | Fri, 28 Jan 2022 13:09:49 +0000 |
parents | bf2d7f74d5ba |
children | 6a77442a3598 |
comparison
equal
deleted
inserted
replaced
1:bf2d7f74d5ba | 2:5e581bfc5341 |
---|---|
1 echo "Stics4CarSolEl Job starting:" | 1 echo "Stics4CarSolEl Job starting:" |
2 date; | 2 date; |
3 | 3 |
4 n_slots=${1}; | 4 n_slots=${1}; |
5 csv_plan=${2}; | 5 csv_plan=${2}; |
6 meteo_archive=${4}; | |
6 sim_number=$(($(cat ${csv_plan} | wc -l) - 1)); | 7 sim_number=$(($(cat ${csv_plan} | wc -l) - 1)); |
7 | 8 |
8 b_size=1 | 9 b_size=1 |
9 | 10 |
10 echo "number of GALAXY_SLOTS: ${1}" | 11 echo "number of GALAXY_SLOTS: ${1}" |
11 | 12 |
12 echo "expected simulations: ${sim_number}" | 13 echo "expected simulations: ${sim_number}" |
13 echo "cvle block size : ${b_size}" | 14 echo "cvle block size : ${b_size}" |
15 | |
16 if [ "$OMPI_COMM_WORLD_RANK" == "0" ]; then | |
17 | |
18 cp -r /data/vle-2001/pkgs/CarSolEl_data/data . | |
19 rm -rf data/meteo | |
20 cd data | |
21 unzip ${meteo_archive} | |
22 cd .. | |
23 fi | |
14 | 24 |
15 cvle -b $b_size -i ${2} -w work -P Stics4AgFlow -P CarSolEl_sim CarSolEl.vpz | 25 cvle -b $b_size -i ${2} -w work -P Stics4AgFlow -P CarSolEl_sim CarSolEl.vpz |
16 | 26 |
17 if [ "$OMPI_COMM_WORLD_RANK" == "0" ]; then | 27 if [ "$OMPI_COMM_WORLD_RANK" == "0" ]; then |
18 | 28 |