Version 2 (modified by luyssaert, 12 years ago) (diff) |
---|
How to add a new flag
Declare the new flag
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
TYPE control_type LOGICAL :: ok_NameOfNewFlag !! Explanation of new flag END TYPE control_type
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
control%ok_NameOfNewFlag = control_in%ok_NameOfNewFlag
Read the flag from the parameter file
To be completed...