Changes between Version 9 and Version 10 of DevelopmentActivities/Branches/ORCHIDEE-MICT-IMBALANCE-P/Compile


Ignore:
Timestamp:
2016-07-11T16:42:14+02:00 (8 years ago)
Author:
ajornet
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DevelopmentActivities/Branches/ORCHIDEE-MICT-IMBALANCE-P/Compile

    v9 v10  
    1717There is an implicit step which depends in your architecture (computer). You need to make sure you have chosen the proper libraries (module load ...) to compile Orchidee.  
    1818 
    19 === XIOS 2 (preferred since MICT v7.2) === 
     19=== IOIPSL === 
    2020 
    21 In order to compile Orchidee MICT + XIOS2 + IOPSL, go to the model source code: 
     21Go to IOIPSL source code folder 
    2222 
    2323{{{ 
    24 cd YOURPATH/modipsl/modeles/ORCHIDEE 
    25 }}} 
    26  
    27 Install all makefiles 
    28  
    29 {{{ 
    30 ../../util/ins_make 
    31 }}} 
    32  
    33 Go to the IOIPSL folder 
    34  
    35 {{{ 
    36 cd ../IOIPSL/src 
    37 }}} 
    38  
    39 Note: despite of XIOS, IOISPL is still used for other tasks: read run.def file, restarts files management, ... 
    40  
    41 Compile IOIPSL 
    42  
    43 {{{ 
    44 gmake  
    45 }}} 
    46  
    47 Go to XIOS 2 folder 
    48  
    49 {{{ 
    50 cd ../../XIOS 
    51 }}} 
    52  
    53 Compile XIOS 2 
    54  
    55 {{{ 
    56 ./make_xios --prod --arch SUPPORTED_MACHINE --full --j 8 
    57 }}} 
    58  
    59 Go to the models source code folder again 
    60  
    61 {{{ 
    62 cd ../ORCHIDEE 
    63 }}} 
    64  
    65 Compile Orchidee 
    66  
    67 {{{ 
    68 ./makeorchidee_fcm  -parallel mpi -arch SUPPORTED_MACHINE -xios2 -driver -prod -full -otherexec -j 8 
    69 }}} 
    70 Replace -arch MACHINE with the machine you are working with. Find more information in makeorchidee_fcm -h command. 
    71  
    72 After that, when you do a modification you can simply run the command line below. So you avoid the whole recompilation from the code: 
    73  
    74 {{{ 
    75 ./makeorchidee_fcm  -parallel mpi -arch SUPPORTED_MACHINE -xios2 -driver -prod -otherexec -j 8 
    76 }}} 
    77  
    78 In some cases it might be necessary to recompile from zero.  
    79  
    80 === IOIPSL (before MICT v7.2) === 
    81  
    82 In order to compile Orchidee MICT + IOIPSL, go to the model source code: 
    83  
    84 {{{ 
    85 cd YOURPATH/modipsl/modeles/ORCHIDEE 
     24cd YOURPATH/modipsl/modeles/IOIPSL/src 
    8625}}} 
    8726 
     
    13574}}} 
    13675 
     76 
     77At this point, chose  
     78 
     79=== MICT + XIOS 2 (preferred since MICT v7.2) === 
     80 
     81More implicit steps: if you are moving for the first time XIOS. Make sure you update modipsl and libIGCM to the latest. Download XIOS again to make sure you are using the proper version. 
     82 
     83In order to compile Orchidee MICT + XIOS2 + IOPSL, go to the model source code: 
     84 
     85{{{ 
     86cd YOURPATH/modipsl/modeles/ORCHIDEE 
     87}}} 
     88 
     89Go to XIOS 2 folder 
     90 
     91{{{ 
     92cd ../../XIOS 
     93}}} 
     94 
     95Compile XIOS 2 
     96 
     97{{{ 
     98./make_xios --prod --arch SUPPORTED_MACHINE --full --j 8 
     99}}} 
     100 
    137101Go to the models source code folder again 
     102 
     103{{{ 
     104cd ../ORCHIDEE 
     105}}} 
     106 
     107Compile Orchidee 
     108 
     109{{{ 
     110./makeorchidee_fcm  -parallel mpi -arch SUPPORTED_MACHINE -xios2 -driver -prod -full -otherexec -j 8 
     111}}} 
     112Replace -arch MACHINE with the machine you are working with. Find more information in makeorchidee_fcm -h command. 
     113 
     114After that, when you do a modification you can simply run the command line below. So you avoid the whole recompilation from the code: 
     115 
     116{{{ 
     117./makeorchidee_fcm  -parallel mpi -arch SUPPORTED_MACHINE -xios2 -driver -prod -otherexec -j 8 
     118}}} 
     119 
     120In some cases it might be necessary to recompile from zero.  
     121 
     122=== MICT (before MICT v7.2) === 
     123 
     124In order to compile Orchidee MICT + IOIPSL: 
     125 
     126Go to the models source code folder 
    138127 
    139128{{{