Changes between Version 1 and Version 2 of Documentation/UserGuide/CompileMethods


Ignore:
Timestamp:
05/26/14 13:11:30 (7 years ago)
Author:
jgipsl
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/UserGuide/CompileMethods

    v1 v2  
    1717 
    1818 
    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 === 
     21A 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 
     24The 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) 
     27driver : 
     28        (cd ../../modeles/ORCHIDEE ; ./makeorchidee_fcm        -j 8 -parallel mpi -prod -arch ${FCM_ARCH} -driver ; ) 
     29}}} 
     30 
     31Example 1 : compile the ORCHIDEE offline model : 
     32{{{ 
     33cd modipsl/config/ORCHIDEE_OL 
     34gmake 
     35}}} 
     36 
     37Example 2 : Clean temporary files created during compilation of IOIPSL and ORCHIDEE (the executable is not deleted) :  
     38{{{ 
     39cd modipsl/config/ORCHIDEE_OL 
     40gmake clean 
     41}}} 
     42 
     43Example 3 : Compile using debug compile options 
     44{{{ 
     45cd modipsl/config/ORCHIDEE_OL 
     46vi AA_make                       => add -debug(or -dev):  ./makeorchidee_fcm -debug -j 8 -parallel mpi -prod -arch ${FCM_ARCH} -driver  
     47../../util/ins_make 
     48gmake 
     49}}} 
     50 
     51 
    2052=== makeorchidee_fcm ===  
    2153The 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.  
     54While using this script the dependencies between fortran modules do not need to be set in advance. Fcm determines the dependencies.  
    2355 
    2456Compile 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]] 
     
    5587  
    5688 
    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.  
     89Using 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 
    5891Example 1 : compile at curie for MPI parallel run mode  
    5992{{{ 
     
    67100 
    68101 
    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) 
     102Example 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) 
    70103{{{ 
    71104./makeorchidee_fcm -parallel seq -arch gfortran -driver 
     
    73106 
    74107 
    75 === Compile configuration ORCHIDEE_OL === 
    76 Compiling is done from the directory modipsl/config/ORCHIDEE_OL using the main Makefile.  
    77  
     108Example 4 : clean files created during previous compilation 
    78109{{{ 
    79 cd modipsl/config/ORCHIDEE_OL 
    80 gmake 
     110./makeorchidee_fcm -clean 
    81111}}} 
    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 to  
    84  
    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_fcm  
    90  
    91 Test done : 
    92 gfortran at local PC 
    93 obelix in queue