Changes between Version 12 and Version 13 of Documentation/UserGuide/CompileMethods


Ignore:
Timestamp:
2015-09-04T16:56:28+02:00 (9 years ago)
Author:
jgipsl
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/UserGuide/CompileMethods

    v12 v13  
     1[[PageOutline]]  
     2 
    13There are 2 methods for compiling ORCHIDEE.  
    24 * '''''Old obsolete method:'' Standard makefiles created based on AA_make and AA_make.gdef.'''  
     
    138140 
    139141 
    140 = Hacking the script - Skip the compilation of teststomate = 
     142= Remove compilation of teststomate and/or forcesoil = 
    141143 
    142144Contributed by Ferenc Pasztor with input from Josfine Ghattas & Betrand Guenet 
    143145 
    144 The standard compilation scripts compile orchidee, forcesoil and teststomate at the same time. Although forcesoil and teststomate are still required for some branches to speed up the compilation. For several other branches they became obsolete. If you want to compile your changes to orchidee without updating teststomate you should change the compilation script: 
    145  
    146 in makeorchidee_fcm, remove teststomate.exe to have 
     146The compilation scripts compile orchidee libraries, and the three executables orchidee_ol, forcesoil and teststomate at the same time. Although forcesoil and teststomate are still required for some branches to speed up the simulation time, for several other branches they became obsolete. If you want to compile your changes to orchidee without compiling teststomate you can change the compilation script. If using makeorchidee_fcm, remove teststomate.exe to have 
    147147 
    148148{{{ 
    149149TARGET="liborchidee_ol.a dim2_driver.exe forcesoil.exe" 
    150150}}} 
     151or if you want to remove also forcesoil.exe :  
     152{{{ 
     153TARGET="liborchidee_ol.a dim2_driver.exe" 
     154}}} 
    151155 
    152 Then remove copy further down : 
     156Then remove the corresponding copy command further down : 
    153157{{{ 
    154158cp bin/teststomate.exe ../../bin/teststomate 
     159cp bin/forcesoil.exe ../../bin/forcesoil 
    155160}}} 
    156161 
    157 Now compile. 
     162If you are using the old compilation method you should instead change in src_driver/Makefile, change the line: 
    158163 
    159 If you are using the old compilation method you should do the following (not tested): 
    160 use 
    161164{{{ 
    162 gmake 
     165all : orchidee_ol teststomate forcesoil 
    163166}}} 
    164 instead of 
     167to  
    165168{{{ 
    166 gmake driver 
     169all : orchidee_ol 
    167170}}} 
    168 then the compilation script will only compile orchidee (and thus skip the compilation of teststomate and forcesoil. If, however, you need forcesoil and orchidee then you should go in src_driver and remove in the Makefile all the lines related to teststomate. 
     171 
     172You can now compile as before.