comparison stics4carsolel.bash @ 4:6a77442a3598 draft

"planemo upload for repository https://forgemia.inra.fr/record/carsolel/-/tree/master/tools commit 7298c614ca40b1e5bffb2a0bc6a6ea8b16b7fc37"
author siwaa
date Mon, 07 Feb 2022 13:29:50 +0000
parents 5e581bfc5341
children ad767c79a776
comparison
equal deleted inserted replaced
3:e7965152f2b0 4:6a77442a3598
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 meteo_archive=${4};
7 station_archive=${5};
8 sol_archive=${6};
7 sim_number=$(($(cat ${csv_plan} | wc -l) - 1)); 9 sim_number=$(($(cat ${csv_plan} | wc -l) - 1));
8 10
9 b_size=1 11 b_size=1
10 12
11 echo "number of GALAXY_SLOTS: ${1}" 13 echo "number of GALAXY_SLOTS: ${1}"
15 17
16 if [ "$OMPI_COMM_WORLD_RANK" == "0" ]; then 18 if [ "$OMPI_COMM_WORLD_RANK" == "0" ]; then
17 19
18 cp -r /data/vle-2001/pkgs/CarSolEl_data/data . 20 cp -r /data/vle-2001/pkgs/CarSolEl_data/data .
19 rm -rf data/meteo 21 rm -rf data/meteo
22 rm -rf data/station
23 rm -rf data/sol
20 cd data 24 cd data
21 unzip ${meteo_archive} 25 unzip ${meteo_archive}
26 unzip ${station_archive}
27 unzip ${sol_archive}
22 cd .. 28 cd ..
23 fi 29 fi
24 30
25 cvle -b $b_size -i ${2} -w work -P Stics4AgFlow -P CarSolEl_sim CarSolEl.vpz 31 cvle -b $b_size -i ${2} -w work -P Stics4AgFlow -P CarSolEl_sim CarSolEl.vpz
26 32