Changes between Version 1 and Version 2 of Documentation/UserGuide/CompileMethods
- Timestamp:
- 05/26/14 13:11:30 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Documentation/UserGuide/CompileMethods
v1 v2 17 17 18 18 19 == How to compile ORCHIDEE using with FCM methode == 19 == How to compile ORCHIDEE using with FCM method == 20 === Main makefile in modipsl/config/ORCHIDEE_OL === 21 A main makefile is found in modipsl/config/ORCHIDEE_OL directory. This makefile will first compile IOIPSL and then ORCHIDEE using the script makeorchidee_fcm. 22 23 24 The default set up compiles ORCHIDEE for MPI parallel run mode. The default options for compiling ORCHIDEE can be changed in AA_make in the following section(regenerate makefiles using the script ins_make in modipsl/util after modification) : 25 {{{ 26 # driver : Only compiling ORCHIDEE (with fcm method) 27 driver : 28 (cd ../../modeles/ORCHIDEE ; ./makeorchidee_fcm -j 8 -parallel mpi -prod -arch ${FCM_ARCH} -driver ; ) 29 }}} 30 31 Example 1 : compile the ORCHIDEE offline model : 32 {{{ 33 cd modipsl/config/ORCHIDEE_OL 34 gmake 35 }}} 36 37 Example 2 : Clean temporary files created during compilation of IOIPSL and ORCHIDEE (the executable is not deleted) : 38 {{{ 39 cd modipsl/config/ORCHIDEE_OL 40 gmake clean 41 }}} 42 43 Example 3 : Compile using debug compile options 44 {{{ 45 cd modipsl/config/ORCHIDEE_OL 46 vi AA_make => add -debug(or -dev): ./makeorchidee_fcm -debug -j 8 -parallel mpi -prod -arch ${FCM_ARCH} -driver 47 ../../util/ins_make 48 gmake 49 }}} 50 51 20 52 === makeorchidee_fcm === 21 53 The script [https://forge.ipsl.jussieu.fr/orchidee/browser/trunk/ORCHIDEE/makeorchidee_fcm makeorchidee_fcm] compiles ORCHIDEE using the FCM, a software developed by the Hadley Centre. 22 makeorchidee_fcm determines the dependencies between fortran source files.54 While using this script the dependencies between fortran modules do not need to be set in advance. Fcm determines the dependencies. 23 55 24 56 Compile options for different target machines or compilers are defined in the directory ''arch/''. For each target machine two files must exist : archname.fcm and archname.path. Use ''./makeorchidee_fcm -h'' to get information about available arguments. See here the main arguments are [[BR]] … … 55 87 56 88 57 Using fcm, the dependencies between the modules are not predefined. fcm will determine the correct order to compile. makeorchidee_fcm to not compile IOIPSL. This must be done in advance. 89 Using fcm, the dependencies between the modules are not predefined. fcm will determine the correct order to compile. makeorchidee_fcm do not compile IOIPSL. This must be done in advance. [[BR]] 90 58 91 Example 1 : compile at curie for MPI parallel run mode 59 92 {{{ … … 67 100 68 101 69 Example 3 : compile using gfortran compiler for sequential run mode (make sure that the files arch/gfortran.fcm and arch/gfortran.path are suitable for the environement)102 Example 3 : compile using gfortran compiler for sequential run mode (make sure that the files arch/gfortran.fcm and arch/gfortran.path are suitable for your environement especially the path to netcdf library) 70 103 {{{ 71 104 ./makeorchidee_fcm -parallel seq -arch gfortran -driver … … 73 106 74 107 75 === Compile configuration ORCHIDEE_OL === 76 Compiling is done from the directory modipsl/config/ORCHIDEE_OL using the main Makefile. 77 108 Example 4 : clean files created during previous compilation 78 109 {{{ 79 cd modipsl/config/ORCHIDEE_OL 80 gmake 110 ./makeorchidee_fcm -clean 81 111 }}} 82 83 The main makefile will first compile IOIPSL. Then it'ill launch the script makeorchidee_fcm (see description below). The default options for makeorchidee_fcm are set to84 85 86 87 The script [https://forge.ipsl.jussieu.fr/orchidee/browser/trunk/ORCHIDEE/makeorchidee_fcm makeorchidee_fcm] compiles ORCHIDEE using the FCM, a software developed by the Hadley Centre.88 89 makeorchidee_fcm90 91 Test done :92 gfortran at local PC93 obelix in queue