Changes between Version 26 and Version 27 of Doc/ComputingCenters


Ignore:
Timestamp:
10/10/19 15:50:09 (5 years ago)
Author:
jgipsl
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Doc/ComputingCenters

    v26 v27  
    3333---- 
    3434 
    35 # [wiki:DocBenvEcommonfiles Shared files] # 
    36 [wiki:Doc/ComputingCenters/Commonfiles Shared files in synchronized repository IGCM] 
     35# [wiki:Doc/ComputingCenters/SharedFiles Shared files] # 
     36[wiki:Doc/ComputingCenters/SharedFiles Shared files in synchronized repository IGCM] 
    3737 
    3838---- 
    3939 
    40 # How to use the IPSL models and tools with a local PC # 
    41 Compiling and running tools are set up by default for known IPSL computing centers. If you need to work on a local PC or another computing cluster, you need to adapt the compilation and running options. 
    42  
    43 ## Compiling ## 
    44 It is recommended to first make a test installation of XIOS following the guide here: http://forge.ipsl.jussieu.fr/ioserver/wiki/documentation  
    45 Then use the same libraries and compiler versions for all components as for XIOS. 
    46  
    47 Some configurations can be installed without XIOS.  
    48  
    49  
    50 ### Choose a target in AA_make.gdef ### 
    51 The ins_make script from modipsl will not recognize your local PC to create makefiles. You must specify an existing target or create a new target in the util/AA_make.gdef file. Adapt this target to your computing environment (compiler, options, path to netcdf, etc), and create a new makefile specifying this target:  
    52 {{{ 
    53 ./ins_make -t new_target 
    54 }}} 
    55  
    56 Please refer to the model managers of your model configuration to learn more about how to compile the IPSL models on a local PC and which compilers can be used with the specific models you need. [[BR]] 
    57  
    58 ### Example for installing ORCHIDEE offline ### 
    59 Before installing ORCHIDEE, make a test installation of XIOS, see guide here: http://forge.ipsl.jussieu.fr/ioserver/wiki/documentation . If this fails, it is still possible to install ORCHIDEE without XIOS, see notes below.  
    60  
    61 {{{ 
    62 # 1. Install a new modipsl 
    63 svn co http://forge.ipsl.jussieu.fr/igcmg/svn/modipsl/trunk modipsl 
    64  
    65  
    66 # 2. Install the configuration ORCHIDEE_trunk 
    67 cd modipsl/util 
    68 ./model ORCHIDEE_trunk 
    69  
    70  
    71 # 3. Adapt and add compile options to your machine 
    72  
    73 # 3a. Compile options for component IOIPSL: 
    74 # Add a section NEW_ARCH in modipsl/util/AA_make.gdef  
    75 # Do this by coping the section ifort_CICLAD for example and adapt all options according to your machine and your compiler. 
    76 # Make sur to have the variable FCM_ARCH correct as follow: 
    77 #-Q- NEW_ARCH FCM_ARCH = NEW_ARCH 
    78  
    79 # 3b. Add compile options for component XIOS 
    80 # Add following files (by coping and adapting one of the existing targets closest to your machine) 
    81  modipsl/modeles/XIOS/arch/arch_NEW_ARCH.fcm 
    82  modipsl/modeles/XIOS/arch/arch_NEW_ARCH.path 
    83  modipsl/modeles/XIOS/arch/arch_NEW_ARCH.env 
    84  
    85 # Note: the netcdf4 library can be parallel or sequential, depending on the version. If the sequential netcdf4 library is used, some functionalities in XIOS can not be used such us using several servers. To link XIOS to the sequantial library, the argument --netcdf_lib netcdf4_seq when compiling XIOS. This should be added in modipsl/config/ORCHIDEE_OL/AA_make just after ./make_xios --netcdf_lib netcdf4_seq ... 
    86  
    87  
    88 # 3b. Add compile options for component ORCHIDEE 
    89 # Add following files (by coping and adapting one of the existing targets closest to your machine) 
    90  modipsl/modeles/ORCHIDEE/arch/arch_NEW_ARCH.fcm 
    91  modipsl/modeles/ORCHIDEE/arch/arch_NEW_ARCH.path 
    92  modipsl/modeles/ORCHIDEE/arch/arch_NEW_ARCH.env 
    93  
    94  
    95 # 4. Create makefiles with target NEW_ARCH 
    96 cd modipsl/util 
    97 ./ins_make -t NEW_ARCH 
    98  
    99  
    100 # 5. Compile 
    101 cd modipsl/config/ORCHIDEE_OL 
    102 gmake 
    103 }}} 
    104 Notes: 
    105 * The name NEW_ARCH can be changed to another name but needs to be same everywhere  
    106 * All arch_NEW_ARCH.* files and AA_make.gdef must be coherent for the libraries and options choosen  
    107 * It is still possible to install without XIOS. For that case, you do not need to do 3b above and the compilation is done using '''gmake without_xios'''  
    108  
    109  
    110 ### Example for installing LMDZOR_v5.2 sequential mode with gfortran ### 
    111 {{{ 
    112 # 1. Install configuration LMDZOR_v5.2 in a new modipsl 
    113 svn co http://forge.ipsl.jussieu.fr/igcmg/svn/modipsl/trunk modipsl 
    114 cd modipsl/util; ./model LMDZOR_v5.2 
    115  
    116 # 2. Adapt the path to your netcdf which must also be compiled with gfortran, in 3 files: 
    117  modipsl/modeles/LMDZ/arch/arch-gfortran.path 
    118  modipsl/modeles/ORCHIDEE/arch/arch-gfortran.path 
    119  modipsl/util/AA_make.gdef (section gfortran) 
    120  
    121 # 3. Change default compiling to sequential run mode in main makefile.  
    122 In modipsl/config/LMDZOR_v5.2/AA_make 
    123 change "-parallel mpi" into "-parallel none" at 3 places.  
    124 The name of the executables changes also, therefore change "_phylmd_para_orch.e" into "_phylmd_seq_orch.e" at 2 places 
    125  
    126 # 4. Recreate makefiles with target gfortran 
    127 cd modipsl/util 
    128 ./ins_make -t gfortran 
    129  
    130 # 5. Compile as usual 
    131 cd modipsl/config/LMDZOR_v5.2; gmake 
    132 }}} 
    133  
    134  
    135 Note 1: for installing in parallel mode with MPI, do as above but adapt the files arch-gfortran.path, arch-gfortran.fcm and AA_make.gef with suitable compile options. You can use target gfortran_CICLAD in AA_make.gdef as example. Do not do point 3 above. [[BR]] 
    136  
    137 Note 2: for older version of ORCHIDEE, such as in LMDZOR_v5, the files in modeles/ORCHIDEE/arch do not exist. Compile options in AA_make.gdef is used for ORCHIDEE in this case. 
    138  
    139 [[NoteBox(note,The v6 configurations cannot be compiled in sequential mode because XIOS do not compile or run without the MPI library., 600px)]] 
    140  
    141  
    142 ## Simulation with libIGCM ## 
    143 When using libIGCM on a local PC, the parameters of the default system described in the libIGCM_sys/libIGCM_sys_default.ksh file will be used. You may have to change this file to match your system. [[BR]] 
    144  
    145 A minimum subset of files located on the shared IGCM account must be downloaded and installed. This directory is called R_IN in libIGCM_sys_default.ksh and it has the default path /home/${LOGIN}/IGCM. 
    146  
    147 ## Installing rebuild ## 
    148 The output of old version of the models (ORCHIDEE, LMDZ, INCA, REPROBUS) must be recombined to the total horizontal domain when simulation is done in parallel mode.  
    149  
    150 The tool for this is called ''rebuild''. The rebuild tool is called in the post-processing phase by libIGCM. rebuild is a fortran code included in IOIPSL. rebuild must be installed and compiled on the local machine. The rebuild can then be used interactively outside libIGCM or in the post-processing phase.  
    151  
    152 '''Installation'''  
    153  
    154 {{{ 
    155 cd modipsl/util 
    156 ./model IOIPSL_PLUS 
    157 # Modify AA_make.gdef for the compiling as above 
    158 ./ins_make -t new_target 
    159 cd ../modeles/IOIPSL/tools 
    160 gmake 
    161 }}} 
    162  
    163  
    164 For use with libIGCM, add the path to your rebuild in libIGCM_sys/libIGCM_sys_default.ksh.  
    165  
    166 '''Use in interactive mode'''[[BR]] 
    167  
    168 rebuild can also be used interactively. For example create the global file sechiba_history.nc as following : 
    169  
    170 {{{ 
    171 ./rebuild -h 
    172 ./rebuild -o sechiba_history.nc sechiba_history_00* 
    173 }}} 
    174  
     40# [wiki:Doc/ComputingCenters/LocalPC Local PC or other cluster] # 
     41[wiki:Doc/ComputingCenters/LocalPC Short guide to install a configuration on a local PC or other cluster]