Changeset 4909
- Timestamp:
- Apr 18, 2024, 1:35:42 PM (7 months ago)
- Location:
- BOL/script_install_amaury
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/script_install_amaury/install_lmdz.sh
r4901 r4909 271 271 tar xf "modipsl.$version.tar" >> get.log 2>&1 272 272 \rm "modipsl.$version.tar" 273 274 if [[ $svn != "" ]]; then 275 mysvn=$svn 276 else 277 mysvn="$(grep 'Revision: [0-9]' "$MODEL"/Read*.md | awk ' { print $2 } ' 2>/dev/null)" 278 fi 279 echo "SVN revision used: $mysvn" 280 } 281 282 function download_model_AMAURY { # TODO TEMP while waiting for tar: we copy the base from a local path = IPSLCM7 + ORCH2.2 8504 273 } 274 275 function create_model_tar { # TODO TEMP while waiting for tar: we copy the base from a local path = IPSLCM7 + ORCH2.2 8504 283 276 if [[ ! -d ../MODEL_REF ]]; then 284 277 cd .. 285 278 mkdir MODEL_REF 286 279 cd MODEL_REF 280 # Base is IPSLCM7 287 281 svn co --username icmc_users https://forge.ipsl.fr/igcmg/svn/modipsl/trunk modipsl 288 282 cd modipsl/util 289 283 ./model IPSLCM7_work 284 # Remove unused components 290 285 rm -rf ../oasis3-mct 291 286 cd ../modeles 292 287 rm -rf ICOSA_LMDZ ORCHIDEE_4 ORCHIDEE_2_2 NEMO DYNAMICO XIOS INCA 288 # Retrieve orch version 293 289 svn co svn://forge.ipsl.fr/orchidee/branches/ORCHIDEE_2_2/ORCHIDEE -r 8504 290 # Correct orchidee bug in 8504 291 sed -i"" -e "s/ts.second=dt_routing/ts%second=dt_routing/" -e "380,390 s/USE grid/USE grid, temp_disabled => contfrac/" ORCHIDEE/src_sechiba/routing_native_flow.f90 292 294 293 cd ../../../script_install 295 294 fi … … 300 299 fi 301 300 MODEL=$(readlink -f "$MODEL"); echo "$MODEL" # absolute path 302 303 if [[ $svn != "" ]]; then304 mysvn=$svn305 else306 mysvn="$(grep 'Revision: [0-9]' "$MODEL"/Read*.md | awk ' { print $2 } ' 2>/dev/null)"307 fi308 echo "SVN revision used: $mysvn"309 301 } 310 302 … … 358 350 359 351 # Convert non-basic compiler 360 case $compiler in # TODO check if it works with other base compilers361 mpif90) ncdf_compiler=$($compiler --help | head -n 1 | cut -f 2 -d " ")352 case $compiler in # TODO test with pgf90 353 mpif90) ncdf_compiler=$($compiler 2> <(head -n 1 | cut -f 1 -d ":")) 362 354 esac 363 355 … … 506 498 case $veget in 507 499 "none") fcm_veget_version="false";; 508 "orch2.0" | "CMIP6") fcm_veget_version=orchidee2.0; fetch_rev= 6592;;500 "orch2.0" | "CMIP6") fcm_veget_version=orchidee2.0; fetch_rev=7906;; # in previous tar we used 6592 but with some modifications to xios_orchidee.f90, which got integrated in 7906 509 501 "orch2.2") fcm_veget_version=orchidee2.1; orcbranch="ORCHIDEE_2_2" ;; # the bundled version 510 502 *) fetch_rev=$veget … … 556 548 fi 557 549 { 558 echo "$varenv ./makeorchidee_fcm -j $make_j -clean $xios_orchid $opt_orc -parallel $parallel -arch $arch"559 550 echo "$varenv ./makeorchidee_fcm -j $make_j $xios_orchid $opt_orc -parallel $parallel -arch $arch" 560 551 } > compile.sh … … 776 767 fi 777 768 # Getting orchidee stuff 778 if [[ $veget = 'CMIP6' ]]; then769 if [[ $veget = 'CMIP6' || $veget = "orch2.0" ]]; then # TODO once we have a 2.2 bench, add it here (or in planned separate bench script) 779 770 echo 'myget 3DBenchs/BENCHCMIP6.tar.gz' 780 771 myget 3DBenchs/BENCHCMIP6.tar.gz … … 847 838 read_cmdline_args "$@" 848 839 #download_model 849 download_model_AMAURY 840 create_model_tar 850 841 init_arch 851 842 check_available_software
Note: See TracChangeset
for help on using the changeset viewer.