Changes between Version 3 and Version 4 of Documentation/UserGuide/InstallLibrary


Ignore:
Timestamp:
2015-03-18T14:16:56+01:00 (9 years ago)
Author:
luyssaert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/UserGuide/InstallLibrary

    v3 v4  
    55{{{ 
    66module list 
    7 }} 
     7}}} 
    88 
    9 Unload the module you no longer want to use, i.e., netcdf/4.2_hdf5_parallel. Note that there could be dependencies between modules. If so unload whatever needs to be unloaded. 
     9Unload the module you no longer want to use, i.e., netcdf/4.2_hdf5_parallel. Note that there could be dependencies between modules. If so, unload whatever needs to be unloaded. 
    1010{{{ 
    1111unload module netcdf/4.2_hdf5_parallel (NetCDF) 
     12}}} 
     13 
     14and load the new module 
     15{{{ 
     16load module netcdf/4.3.3.1_hdf5_parallel 
    1217}}} 
    1318 
     
    1722}}} 
    1823 
    19 load module netcdf/4.3.3.1_hdf5_parallel 
     24Check for the library paths in the module 
     25{{{ 
    2026module show netcdf/4.3.3.1_hdf5_parallel 
     27}}} 
    2128 
     29for this example you will get the follow output 
     30{{{ 
     31... 
    2232setenv          NETCDF_ROOT     /usr/local/netcdf-4.3.3.1_hdf5_parallel 
    2333setenv          NETCDF_EXEDIR   /usr/local/netcdf-4.3.3.1_hdf5_parallel/bin 
    2434setenv          NETCDF_INCDIR   /usr/local/netcdf-4.3.3.1_hdf5_parallel/include 
    2535setenv          NETCDF_LIBDIR   /usr/local/netcdf-4.3.3.1_hdf5_parallel/lib 
     36... 
     37}}} 
    2638 
     39Make sure that these paths are used in 
     40{{{ 
    2741../../modeles/IOIPSL/src/Makefile 
    2842../../modeles/ORCHIDEE/arch.path 
    2943../../modeles/XIOS/arch/arch-X64_CURIE.path 
     44}}} 
     45 
     46When you change from library 4.2 to 4.3.3.1 you will have to change NETCDF_INC_DIR to NETCDF_INCDIR and NETCDF_LIB_DIR to NETCDF_LIBDIR. After doing so do a make clean and compile (it worked for me with fcm). If you want that these changes are permanent, remember to also change the paths in the AA_make file, that way the new path will be used when doing an ins_make.   
     47 
     48Now the model is compiled with the new libraries but the libIGCM is not aware of that, so you will have to make some changes to libIGCM as well. 
     49{{{ 
     50emacs ../../../libIGCM/libIGCM_sys/libIGCM_sys_curie.ksh & 
     51}}} 
     52 
     53 
     54 
     55 
     56 
    3057 
    3158NETCDF_INC_DIR is deprecated and has been replaced by NETCDF_INCDIR