Changeset 410 for XIOS/trunk/make_xios


Ignore:
Timestamp:
01/19/13 19:24:21 (8 years ago)
Author:
ymipsl
Message:

management of internal netcdf library

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/make_xios

    r402 r410  
    2626            echo "       [--doc] : to generate Doxygen documentation (not available yet)" 
    2727            echo "       [--job ntasks] : to use parallel compilation with ntasks" 
    28             echo "       [--netcdf_lib 'netcdf4_par'/'netcdf4_seq' : default netcdf4_par] : choice of netcdf library" 
     28            echo "       [--netcdf_lib 'netcdf4_par'/'netcdf4_seq'/'netcdf4_internal' : default netcdf4_par] : choice of netcdf library" 
    2929            echo "       [--memtrack] : tracking memory leak - developper only" 
    3030            echo "Example : ./make_xios --prod --arch PW6_VARGAS" 
     
    107107fi 
    108108 
     109rm -r $PWD/extern/netcdf4 
     110 
    109111if [[ "$netcdf_lib" == "netcdf4_par" ]] 
    110112   then 
    111       XMLIO_CPPKEY="$XMLIO_CPPKEY USING_NETCDF_PAR" 
     113     ln -s $PWD/.void_dir $PWD/extern/netcdf4 
     114     XMLIO_CPPKEY="$XMLIO_CPPKEY USING_NETCDF_PAR" 
    112115elif [[ "$netcdf_lib" == "netcdf4_seq" ]] 
    113116  then  
    114     set nothing   
     117    ln -s $PWD/.void_dir $PWD/extern/netcdf4 
     118elif [[ "$netcdf_lib" == "netcdf4_internal" ]] 
     119  then  
     120    ln -s $PWD/extern/src_netcdf4 $PWD/extern/netcdf4 
     121    XMLIO_CPPKEY="$XMLIO_CPPKEY USING_NETCDF_PAR USING_NETCDF_INTERNAL" 
     122    export NETCDF_INCDIR="-I${PWD}/extern/netcdf4" 
     123    export NETCDF_LIBDIR="" 
     124    export NETCDF_LIB="" 
    115125else 
    116    echo "Bad choice for --netcdf_lib argument : choose between 'netcdf4_par' or 'netcdf4_seq'" 
     126   echo "Bad choice for --netcdf_lib argument : choose between 'netcdf4_par','netcdf4_seq' or 'netcdf4_internal'" 
    117127   exit 
    118128fi 
Note: See TracChangeset for help on using the changeset viewer.