Changeset 4921


Ignore:
Timestamp:
Apr 25, 2024, 4:23:42 PM (11 days ago)
Author:
abarral
Message:

add adastra gnu arch
fix netcdf mpif90 detection
fix gfortran detection on adastra
fix check for lmdz version and orchidee seq

Location:
BOL/script_install_amaury
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/script_install_amaury/install_lmdz.sh

    r4917 r4921  
    356356        # Convert non-basic compiler
    357357        case $compiler in
    358             mpif90) ncdf_compiler=$($compiler 2>&1 >/dev/null | head -n 1 | cut -f 1 -d ":")
     358            mpif90) ncdf_compiler=$($compiler --version | head -n 1 | cut -d " " -f -1)
    359359        esac
    360360
    361361        case $ncdf_compiler in
    362             gfortran) opt1="-compiler gnu"; opt2="-CC gcc -FC gfortran -CXX g++";;
     362            gfortran | GNU) ncdf_compiler="gfortran"; opt1="-compiler gnu"; opt2="-CC gcc -FC gfortran -CXX g++";;
    363363            *)      echo "unexpected compiler $ncdf_compiler for netcdf"; exit 1
    364364        esac
     
    474474            "2.6")
    475475            xios_http="http://forge.ipsl.jussieu.fr/ioserver/svn/XIOS2/branches/xios-2.6";;
    476             *) echo "XIOS: Error, bad argument for -branch ! Did not expect $xios_branch"; exit;;
     476            *) echo "XIOS: Error, bad argument for -branch ! Did not expect $xios_branch"; exit 1;;
    477477        esac
    478478       
     
    522522
    523523    # Check parallel LMDZ+ORCH
    524     if [[ (! $veget = "none") && (! $parallel = "none") && ($used_lmdz_rev -lt 4894) ]]; then
    525         echo "LMDZ revision must be >=4894 for orchidee with parallel support"; exit 1
     524    if [[ (! $veget = "none") && $parallel = "none" && ($used_lmdz_rev -lt 4894) ]]; then
     525        echo "LMDZ revision must be >=4894 for orchidee without parallel support. Upgrade lmdz or use -parallel mpi_omp."; exit 1
    526526    fi
    527527}
Note: See TracChangeset for help on using the changeset viewer.