Ignore:
Timestamp:
Jul 20, 2022, 5:54:13 PM (2 years ago)
Author:
lguez
Message:

Download and compile NetCDF95

NetCDF95 becomes an external library instead of being included in the
sources of LMDZ. See commit 4179.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/script_install/install_lmdz_new.sh

    r4212 r4213  
    532532fi
    533533
    534 for logiciel in wget tar gzip make $compiler gcc ; do
     534for logiciel in wget tar gzip make $compiler gcc cmake ; do
    535535if [ "`which $logiciel`" = "" ] ; then
    536536echo You must first install $logiciel on your system
     
    888888echo "NETCDF_LIBDIR=\"-L${ncdfdir}/lib -lnetcdff -lnetcdf\"" > arch-local.path
    889889echo "NETCDF_INCDIR=-I${ncdfdir}/include" >> arch-local.path
     890echo 'NETCDF95_INCDIR=$LMDGCM/../../include' >> arch-local.path
     891echo 'NETCDF95_LIBDIR=$LMDGCM/../../lib' >> arch-local.path
    890892echo 'IOIPSL_INCDIR=$LMDGCM/../../lib' >> arch-local.path
    891893echo 'IOIPSL_LIBDIR=$LMDGCM/../../lib' >> arch-local.path
     
    958960
    959961##################################################################
     962
     963
     964if [[ ! -f libf/misc/netcdf95.F90 &&  ! -d $MODEL/NetCDF95-0.2 ]]
     965then
     966    cd $MODEL
     967    myget import/NetCDF95-0.2.tar.gz
     968    tar -xf NetCDF95-0.2.tar.gz
     969    rm NetCDF95-0.2.tar.gz
     970    cd NetCDF95-0.2
     971    mkdir build
     972    cd build
     973    cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=$ncdfdir \
     974          -DCMAKE_INSTALL_PREFIX=$MODEL/modipsl
     975    make install
     976    cd $MODEL/modipsl/modeles/LMDZ*
     977fi
    960978
    961979echo '##################################################################'
Note: See TracChangeset for help on using the changeset viewer.