Changes between Version 1 and Version 2 of Developers


Ignore:
Timestamp:
2012-06-06T15:55:24+02:00 (12 years ago)
Author:
luyssaert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Developers

    v1 v2  
    1 = How to start development with ORCHIDEE =  
     1= How to add a new flag = 
    22 
     3 
     4=== Declare the new flag === 
     5 
     6For consistency reasons new flags are to be declared in a structure. First, you need to declare the new flag as a logical in ../modeles/ORCHIDEE/src_parameter/constantes.f90 in the existing control type block. Variables declared in constantes.f90 are global 
     7 
     8{{{ 
     9TYPE control_type 
     10   LOGICAL :: ok_NameOfNewFlag      !! Explanation of new flag 
     11END TYPE control_type 
     12}}} 
     13 
     14Next, you store the flags in a common variable named 'control'. This is done in ../modeles/ORCHIDEE/src_sechiba/sechiba.f90 in the subroutine sechiba_init 
     15 
     16{{{ 
     17control%ok_NameOfNewFlag = control_in%ok_NameOfNewFlag 
     18}}} 
     19 
     20[[BR]] 
     21 
     22=== Read the flag from the parameter file === 
     23 
     24To be completed... 
     25 
     26[[BR]] 
     27[[BR]] 
     28 
     29= How to ... = 
     30 
     31 
     32