Changeset 4212 for BOL


Ignore:
Timestamp:
Jul 20, 2022, 5:54:12 PM (23 months ago)
Author:
lguez
Message:

Install more recent NetCDF libraries

Install NetCDF C library 4.3.3.1 and NetCDF Fortran library
4.4.2. Mainly we want a NetCDF configuration able to handle the
NetCDF4 format, with groups. The downside is that the compilation time
is longer. We could just configure NetCDF 4.0.1 with option
-enable-netcdf4 but compilation would also be longer, so while we are
at it, we use more recent versions of NetCDF.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/script_install/install_lmdz_new.sh

    r4211 r4212  
    577577   echo log file : $netcdflog
    578578   if [ "$with_xios" = "n" ] ; then
    579       # keep it simple
    580       #wget http://www.lmd.jussieu.fr/~lmdz/Distrib/netcdf-4.0.1.tar.gz
    581       myget import/netcdf-4.0.1.tar.gz
    582       gunzip netcdf-4.0.1.tar.gz
    583       tar xvf netcdf-4.0.1.tar
    584       \rm -f netcdf-4.0.1.tar
    585    
    586       cd netcdf-4.0.1
    587    
    588       localdir=`pwd -P`
    589       ./configure --prefix=$localdir --enable-shared --disable-cxx
    590       #sed -e 's/gfortran/'$gfortran'/g' Makefile >| tmp ; mv -f tmp Makefile
    591       $make check > $netcdflog 2>&1
    592       $make install >> $netcdflog 2>&1
    593     #LF rajout d'une verrue, pour une raison non encore expliquee, la librairie est parfois rangée dans lib64
    594     #   et non dans lib par certains compilateurs
    595       if [ ! -e lib -a -d lib64 ] ; then ln -s lib64 lib; fi
     579       myget import/install_netcdf4_hdf5_seq.bash
     580       chmod +x install_netcdf4_hdf5_seq.bash
     581
     582       if [ "$compiler" = "gfortran" ]
     583       then
     584           ./install_netcdf4_hdf5_seq.bash -prefix $MODEL/netcdf4_hdf5_seq \
     585                                           -compiler gnu  > $netcdflog 2>&1
     586       elif [ "$compiler" = "ifort" ]
     587       then
     588           ./install_netcdf4_hdf5_seq.bash -prefix $MODEL/netcdf4_hdf5_seq \
     589                                           -compiler intel  > $netcdflog 2>&1
     590       else
     591           echo "unexpected compiler $compiler" ; exit
     592       fi
     593
     594       # LF rajout d'une verrue, pour une raison non encore expliquee,
     595       # la librairie est parfois rangée dans lib64 et non dans lib
     596       # par certains compilateurs
     597       if [ ! -e lib -a -d lib64 ] ; then ln -s lib64 lib; fi
    596598   else
    597599      # download and compile hdf5 and netcdf, etc. using the install_netcdf4_hdf5.bash script
Note: See TracChangeset for help on using the changeset viewer.