Changeset 4211 for BOL


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

Change default to no installation of NetCDF

Change default behavior to no installation of NetCDF. The option is
unchanged: it is still -netcdf, with 3 possible arguments, 0, 1 or a
path. The default value is changed to 0. And the interpretation of
-netcdf 0 is different: it now means that install_lmdz.sh should
look for NetCDF in standard locations, instead of looking for a
previous installation of NetCDF by install_lmdz.sh.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/script_install/install_lmdz_new.sh

    r4210 r4211  
    7474
    7575getlmdzor=1
    76 netcdf=1   #  1 for automatic installation
    77            #  0 for no installation
    78            #  /.../../netcdf-4.0.1 if wanting to link with an already
    79            #  compiled netcdf library (implies to check option compatibility)
     76netcdf=0   #  1: for automatic installation;
     77           #  or 0: do not install NetCDF and look for it in standard locations;
     78           #  or absolute path: look for NetCDF there
    8079check_linux=1
    8180ioipsl=1
     
    163162    -name      LOCAL_MODEL_NAME : default = LMDZversion.release
    164163
    165     -netcdf    PATH : full path to an existing installed NetCDF library
    166                (without -netcdf: also download and install the NetCDF library)
     164    -netcdf    0, 1 or PATH
     165               0: do not download NetCDF, look for it in standard locations
     166               1: download and compile NetCDF
     167               PATH: full path to an existing installed NetCDF library
    167168
    168169    -xios      also download and compile the XIOS library
     
    305306
    306307   cicla|camel)   compiler="gfortran" ;
     308            module load netcdf4/4.3.3.1-gfortran;
     309            netcdf=/opt/netcdf43/gfortran
     310
    307311            if [ $parallel != none ] ; then
    308312              module load openmpi/1.6.5-gfortran ;
     
    609613
    610614# ncdfdir contains the directory where netcdf is installed
    611 if [ $netcdf = 0 -o $netcdf = 1 ] ; then
     615if [ $netcdf = 1 ] ; then
    612616   if [ "$with_xios" = "y" ] ; then
    613617      ncdfdir=$MODEL/netcdf4_hdf5
    614618   else
    615       ncdfdir=$MODEL/netcdf-4.0.1
     619      ncdfdir=$MODEL/netcdf4_hdf5_seq
    616620   fi
     621elif [ $netcdf = 0 ]
     622then
     623     ncdfdir=/usr
    617624else
    618625   ncdfdir=$netcdf
Note: See TracChangeset for help on using the changeset viewer.