Changes between Version 4 and Version 5 of Doc/ComputingCenters/LocalPC
- Timestamp:
- 02/26/20 17:15:28 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Doc/ComputingCenters/LocalPC
v4 v5 15 15 16 16 17 Some configurations can be installed without [wiki:Doc/Tools#XIOS XIOS].17 Only some configurations can be installed without [wiki:Doc/Tools#XIOS XIOS]. 18 18 19 ## Choose a target in AA_make.gdef ## 19 ## Compilation with script for configurations _v6.2 and newer ## 20 Compilation of each component included in the configuration must be adapted. Each component has a arch folder containing 2 files specific for each machine: arch-NEW_ARCH.fcm and arch-NEW_ARCH.path. These files must be added in each arch folder. Use one of the existing target machines as example. For example for LMDZOR_v6.2 configuration, following files must be added: 21 {{{ 22 modipsl/modeles/IOIPSL/arch/arch-NEW_ARCH.fcm 23 modipsl/modeles/IOIPSL/arch/arch-NEW_ARCH.path 24 modipsl/modeles/XIOS/arch/arch-NEW_ARCH.fcm 25 modipsl/modeles/XIOS/arch/arch-NEW_ARCH.path 26 modipsl/modeles/ORCHIDEE/arch/arch-NEW_ARCH.fcm 27 modipsl/modeles/ORCHIDEE/arch/arch-NEW_ARCH.path 28 modipsl/modeles/LMDZ/arch/arch-NEW_ARCH.fcm 29 modipsl/modeles/LMDZ/arch/arch-NEW_ARCH.path 30 }}} 31 32 Add also the file arch-NEW_ARCH.env containing modules in the config/ARCH folder. For LMDZOR_v6.2, add following file: 33 {{{ 34 modipsl/config/LMDZOR/ARCH/arch-NEW_ARCH.path 35 }}} 36 37 Launch the compilation by specifing '''-arch NEW_ARCH''' as argument to the compilation script. 38 For LMDZOR_v6.2, launch as follow: 39 {{{ 40 cd modipsl/config/LMDZOR 41 ./compile_lmdzor.sh -arch NEW_ARCH 42 }}} 43 44 45 ## Compilation with main Makefile for configurations _v6 and _v6.1.* ## 46 ### Choose a target in AA_make.gdef ### 20 47 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: 21 48 {{{ … … 25 52 One of the important variables given is `FCM_ARCH`. Set for example `FCM_ARCH=NEW-ARCH`. `FCM_ARCH` gives the name of the arch files used for the different models, see next section. 26 53 27 ## Adapt compilation for each model##54 ### Adapt compilation for each model ### 28 55 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. See some information here below. 29 56 30 57 Most of the IPSL models uses compilation based on fcm ([wiki:Doc/Compile#Compilingenvironment for more informations on fcm]) and the compiling options are set in arch files. Depending on the version of the models and between the models the file `arch-target.path` might have different syntaxes. For each model, take as example one existing target machine and adapt for your PC. The files are stored in the folder `modipsl/modeles/MODEL/arch/arch-NEW_ARCH.fcm/.path/.env`. The name `NEW_ARCH` can be changed but must be the same for all modeles and set in AA_make.gdef. 31 58 32 ## Example for installing ORCHIDEE offline##59 ## Example for ORCHIDEE_2_2 offline version ## 33 60 Before installing [wiki:Doc/Models/ORCHIDEE ORCHIDEE], make a test installation of [wiki:Doc/Tools#XIOS XIOS], see guide here: http://forge.ipsl.jussieu.fr/ioserver/wiki/documentation . If this fails, it is still possible to install [wiki:Doc/Models/ORCHIDEE ORCHIDEE] without [wiki:Doc/Tools#XIOS XIOS], see notes below. 34 61 … … 38 65 39 66 40 # 2. Install the configuration ORCHIDEE_ trunk67 # 2. Install the configuration ORCHIDEE_2_2 41 68 cd modipsl/util 42 ./model ORCHIDEE_ trunk69 ./model ORCHIDEE_2_2 43 70 44 71 … … 85 112 86 113 87 ## Example for installingLMDZOR_v5.2 sequential mode with gfortran ##114 ## Example for LMDZOR_v5.2 sequential mode with gfortran ## 88 115 {{{ 89 116 # 1. Install configuration LMDZOR_v5.2 in a new modipsl