Changeset 4909


Ignore:
Timestamp:
Apr 18, 2024, 1:35:42 PM (7 months ago)
Author:
abarral
Message:

add test_compils.sh
modify orch 2.2 to correct fortran mistakes
fix orch2.0 rev
remove useless makeorchidee -clean call
remove orchidee bench for 2.2 since it's not yet compatible

Location:
BOL/script_install_amaury
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/script_install_amaury/install_lmdz.sh

    r4901 r4909  
    271271    tar xf "modipsl.$version.tar" >> get.log 2>&1
    272272    \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
     275function create_model_tar {  # TODO TEMP while waiting for tar: we copy the base from a local path = IPSLCM7 + ORCH2.2 8504
    283276    if [[ ! -d ../MODEL_REF ]]; then
    284277        cd ..
    285278        mkdir MODEL_REF
    286279        cd MODEL_REF
     280        # Base is IPSLCM7
    287281        svn co --username icmc_users https://forge.ipsl.fr/igcmg/svn/modipsl/trunk modipsl
    288282        cd modipsl/util
    289283        ./model IPSLCM7_work
     284        # Remove unused components
    290285        rm -rf ../oasis3-mct
    291286        cd ../modeles
    292287        rm -rf ICOSA_LMDZ ORCHIDEE_4 ORCHIDEE_2_2 NEMO DYNAMICO XIOS INCA
     288        # Retrieve orch version
    293289        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
    294293        cd ../../../script_install
    295294    fi
     
    300299    fi
    301300    MODEL=$(readlink -f "$MODEL"); echo "$MODEL"  # absolute path
    302 
    303     if [[ $svn != "" ]]; then
    304         mysvn=$svn
    305     else
    306         mysvn="$(grep 'Revision: [0-9]' "$MODEL"/Read*.md | awk ' { print $2 } ' 2>/dev/null)"
    307     fi
    308     echo "SVN revision used: $mysvn"
    309301}
    310302
     
    358350
    359351        # Convert non-basic compiler
    360         case $compiler in  # TODO check if it works with other base compilers
    361             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 ":"))
    362354        esac
    363355
     
    506498    case $veget in
    507499        "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
    509501        "orch2.2") fcm_veget_version=orchidee2.1; orcbranch="ORCHIDEE_2_2" ;; # the bundled version
    510502        *) fetch_rev=$veget
     
    556548            fi
    557549            {
    558                 echo "$varenv ./makeorchidee_fcm -j $make_j -clean $xios_orchid $opt_orc -parallel $parallel -arch $arch"
    559550                echo "$varenv ./makeorchidee_fcm -j $make_j $xios_orchid $opt_orc -parallel $parallel -arch $arch"
    560551            } > compile.sh
     
    776767        fi
    777768        # Getting orchidee stuff
    778         if [[ $veget = 'CMIP6' ]]; then
     769        if [[ $veget = 'CMIP6' || $veget = "orch2.0" ]]; then  # TODO once we have a 2.2 bench, add it here (or in planned separate bench script)
    779770            echo 'myget 3DBenchs/BENCHCMIP6.tar.gz'
    780771            myget 3DBenchs/BENCHCMIP6.tar.gz
     
    847838read_cmdline_args "$@"
    848839#download_model
    849 download_model_AMAURY
     840create_model_tar
    850841init_arch
    851842check_available_software
Note: See TracChangeset for help on using the changeset viewer.