| 3 | |
| 4 | === Declare the new flag === |
| 5 | |
| 6 | For 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 | {{{ |
| 9 | TYPE control_type |
| 10 | LOGICAL :: ok_NameOfNewFlag !! Explanation of new flag |
| 11 | END TYPE control_type |
| 12 | }}} |
| 13 | |
| 14 | Next, 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 | {{{ |
| 17 | control%ok_NameOfNewFlag = control_in%ok_NameOfNewFlag |
| 18 | }}} |
| 19 | |
| 20 | [[BR]] |
| 21 | |
| 22 | === Read the flag from the parameter file === |
| 23 | |
| 24 | To be completed... |
| 25 | |
| 26 | [[BR]] |
| 27 | [[BR]] |
| 28 | |
| 29 | = How to ... = |
| 30 | |
| 31 | |
| 32 | |