Ignore:
Timestamp:
Jun 3, 2024, 1:07:36 PM (6 months ago)
Author:
abarral
Message:

update compat checks
fix existing ncdf95

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/script_install_amaury/install_lmdz.sh

    r4941 r4957  
    264264
    265265    # STOP if trying to use both ORCHIDEE and Isotopes :
    266     if [[ $isotopes = 1 && $veget != "NONE" ]]; then
     266    if [[ $isotopes = 1 && $veget != "none" ]]; then
    267267      echo "STOP: You cannot run LMDZ with ORCHIDEE and ISOtopes at the same time"; exit 1
    268268    fi
     
    279279    fi
    280280
    281     # (Temporary) Constraints for aerosols=spla :
    282     # --> resolution 128x88x79 and rad=rrtm
    283     if [[ $aerosols = 1 && $grid_resolution != "128x88x79" ]]; then
    284       echo 'For now, <aerosols=spla> requires <resol=128x88x79>, and uses the zoomed grid from gcm.def_zNAfrica_BiJe, for which forcing & initial files are available'
    285       echo "Right now resol=<$grid_resolution>"
    286       exit 1
    287     fi
    288 
    289281    if [[ $aerosols = 1 && $rad != "rrtm" ]]; then
    290282      echo "STOP: For the time being, <aerosols=spla> requires <rad=rrtm>"; exit 1
    291283    fi
     284    # TODO: vérifier quelles contraintes sont des contraintes lmdzsetup, et lesquelles sont des vraies contraintes
    292285}
    293286
     
    491484    echo "Installing NetCDF95"
    492485    cd "$MODEL"
    493     myget src_archives/netcdf/NetCDF95-0.3.tar.gz
    494     tar -xf NetCDF95-0.3.tar.gz
    495     \rm NetCDF95-0.3.tar.gz
    496     cd NetCDF95-0.3
    497     mkdir -p build && cd build
    498     netCDF_INCLUDE_DIR=$(nc-config --includedir) netCDF_LIBRARY=$(nc-config --libdir) cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="$ncdfdir" -DCMAKE_INSTALL_PREFIX="$MODEL/modipsl"
    499     make install
     486    if [[ ! -d "NetCDF95-0.3" ]]; then
     487        myget src_archives/netcdf/NetCDF95-0.3.tar.gz
     488        tar -xf NetCDF95-0.3.tar.gz
     489        \rm NetCDF95-0.3.tar.gz
     490        cd NetCDF95-0.3
     491        mkdir -p build && cd build
     492        netCDF_INCLUDE_DIR=$(nc-config --includedir) netCDF_LIBRARY=$(nc-config --libdir) cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="$ncdfdir" -DCMAKE_INSTALL_PREFIX="$MODEL/modipsl"
     493        make install
     494    fi
    500495}
    501496
Note: See TracChangeset for help on using the changeset viewer.