Changes between Version 2 and Version 3 of DevelopmentActivities/Branches/ORCHIDEE-MICT-IMBALANCE-P/Compile
- Timestamp:
- 2016-03-10T14:21:38+01:00 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevelopmentActivities/Branches/ORCHIDEE-MICT-IMBALANCE-P/Compile
v2 v3 1 1 = How to compile MICT = 2 3 Be aware there other ways to compile Orchidee. All of them are valid. But the use of makeorchidee_fcm should make things easier. It enables the compilation with multiple cores at the same time. No need to modify any file to change the compilation mode (prod/dev/debug). 4 5 == Compilation == 2 6 3 7 In order to compile orchidee, go to the model source code: … … 38 42 Replace -arch MACHINE with the machine you are working with. Find more information in makeorchidee_fcm -h command. 39 43 44 After that, when you do a modification you can simply run the command line below. So you avoid the whole recompilation from the code: 40 45 41 Note: 46 {{{ 47 ./makeorchidee_fcm -parallel mpi -arch SUPPORTED_MACHINE -driver -prod -j 8 48 }}} 49 50 In some cases it might be necessary to recompile from zero. 51 52 == Debug == 53 54 If you need to debug use: 55 56 {{{ 57 ./makeorchidee_fcm -parallel mpi -arch SUPPORTED_MACHINE -driver -debug -full -j 8 58 }}} 59 60 == Notes == 42 61 * the use of gmake produces an error due to dependencies. For this reason, it is only required to compile orchidee libraries (ioipsl, ...). 43 62 * This guide expects you have selected the proper module libraries in the HPC you are working with.