Changeset 4995 for BOL/LMDZ_Setup_amaury/setup.sh
- Timestamp:
- Jun 26, 2024, 2:16:21 PM (10 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/LMDZ_Setup_amaury/setup.sh
r4993 r4995 226 226 echo "Running install_lmdz_options.$$.sh" 227 227 set -o pipefail 228 # TODO (wip) Run install_lmdz using $RUNCMD to 1) speed up 2) avoid issues related to being on the "right" platform for compilation 229 # gcm=$MODEL/$($RUNCMD $make_j bash install_lmdz_options.$$.sh | tee /dev/tty | tail -n 1 | sed -n "s:.* executable is \(.*\.e\).*:\1:p") 230 gcm=$MODEL/$(./install_lmdz_options.$$.sh | tee /dev/tty | tail -n 1 | sed -n "s:.* executable is \(.*\.e\).*:\1:p") 228 # We launch using $RUNCMD, except if it's using mpirun (no srun equivalent for bash script) => if supported, the compilation runs in a cluster job 229 local install_cmd="$RUNCMD $make_j" 230 if [[ $(echo "$RUNCMD" | cut -c -6) = "mpirun" ]]; then 231 install_cmd="" 232 fi 233 gcm=$MODEL/$($install_cmd ./install_lmdz_options.$$.sh | tee /dev/tty | tail -n 1 | sed -n "s:.* executable is \(.*\.e\).*:\1:p") 234 # gcm=$MODEL/$(./install_lmdz_options.$$.sh | tee /dev/tty | tail -n 1 | sed -n "s:.* executable is \(.*\.e\).*:\1:p") 231 235 set +o pipefail 232 236 mv install_lmdz.sh install_lmdz.$$.sh … … 310 314 #--------------------------------------------------------------------- 311 315 sed -i'' -e 's/iflag_rrtm=.*.$/iflag_rrtm='"$iflag_rrtm"'/' -e 's/NSW=.*.$/NSW='"$NSW"'/' DEF/physiq.def 312 sed -i"" -e "s:directory_name.*$:directory_name=\"$MODEL/libf/phylmd/ecrad/ ecrad_data\",:" DEF/namelist_ecrad316 sed -i"" -e "s:directory_name.*$:directory_name=\"$MODEL/libf/phylmd/ecrad/data\",:" DEF/namelist_ecrad 313 317 314 318 if [[ $phylmd = "lmdiso" ]]; then iflag_ice_thermo=0; else iflag_ice_thermo=1; fi … … 600 604 #@JZ#SBATCH --error=Init%j.out # Nom du fichier d'erreur (ici commun avec la sortie) 601 605 #@JZ# To submit to dev queue; "time" (above) must be max 2h 602 #@JZ# 606 #@JZ#TESTQ#SBATCH --qos=qos_cpu-dev 603 607 #@SP#Spirit 604 608 #@SP#SBATCH --job-name=Init … … 613 617 #@ADS#SBATCH --ntasks=1 614 618 #@ADS#SBATCH --cpus-per-task=1 619 #@ADS#SBATCH --ntasks-per-node=8 # TODO check how to scale this 615 620 #@ADS#SBATCH --hint=nomultithread 616 621 #@ADS#SBATCH --time=00:10:00 617 622 #@ADS#SBATCH --output=Init%j.out 618 623 #@ADS#SBATCH --error=Init%j.out 624 625 set -eu 619 626 620 627 # ANCIEN MULTI STEP case \${LOADL_STEP_NAME} in
Note: See TracChangeset
for help on using the changeset viewer.