Changeset 433


Ignore:
Timestamp:
2011-09-01T15:52:59+02:00 (13 years ago)
Author:
didier.solyga
Message:

Set impose_param as a public variable in intersurf. Clean some commented code in both hydrologt modules. Define the euler constant as EXP(1.)

Location:
branches/ORCHIDEE_EXT/ORCHIDEE
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/ORCHIDEE_EXT/ORCHIDEE/src_parameters/constantes.f90

    r366 r433  
    203203  REAL(r_std), PARAMETER :: pi = 4.*ATAN(1.) 
    204204  ! e 
    205   REAL(r_std),PARAMETER :: euler = 2.71828182846 !or euler = EXP(1.) 
     205  REAL(r_std),PARAMETER :: euler = EXP(1.) ! previously euler = 2.71828182846 
    206206  !- 
    207207  ! Integer constant set to zero 
     
    417417  ! 
    418418  ! allow agricultural PFTs 
    419   LOGICAL,SAVE :: agriculture = .TRUE.  
     419  LOGICAL, SAVE :: agriculture = .TRUE.  
    420420  LOGICAL, SAVE  :: impveg = .FALSE. 
    421421  LOGICAL, SAVE  :: impsoilt = .FALSE. 
  • branches/ORCHIDEE_EXT/ORCHIDEE/src_sechiba/hydrol.f90

    r311 r433  
    18951895    INTEGER(i_std)                                :: ji, jv 
    18961896    REAL(r_std), DIMENSION (kjpindex,nvm)          :: zqsintvegnew 
    1897 !!$    LOGICAL, SAVE                                  :: firstcall=.TRUE. 
    1898 !!$ 
    1899 !!$    IF ( firstcall ) THEN 
    1900 !!$ 
    1901 !!$       throughfall_by_pft = throughfall_by_pft / 100. 
    1902 !!$ 
    1903 !!$       firstcall=.FALSE. 
    1904 !!$    ENDIF 
    1905  
    19061897 
    19071898    ! calcul de qsintmax a prevoir a chaque pas de temps 
  • branches/ORCHIDEE_EXT/ORCHIDEE/src_sechiba/hydrolc.f90

    r311 r433  
    447447    ENDIF 
    448448 
    449     ! >> july 2011 add initialisation of sneige and throughfall_by_pft 
     449    ! >> DS : july 2011 add initialisation of sneige and throughfall_by_pft 
    450450    sneige = snowcri/mille 
    451451    throughfall_by_pft = throughfall_by_pft / 100.    
     
    14501450    INTEGER(i_std)                                :: ji, jv 
    14511451    REAL(r_std), DIMENSION (kjpindex,nvm)          :: zqsintvegnew 
    1452 !!$    LOGICAL, SAVE                                  :: firstcall=.TRUE. 
    1453 !!$ 
    1454 !!$    IF ( firstcall ) THEN 
    1455 !!$ 
    1456 !!$       throughfall_by_pft = throughfall_by_pft / 100. 
    1457 !!$ 
    1458 !!$       firstcall=.FALSE. 
    1459 !!$    ENDIF 
    14601452 
    14611453    ! calcul de qsintmax a prevoir a chaque pas de temps 
  • branches/ORCHIDEE_EXT/ORCHIDEE/src_sechiba/intersurf.f90

    r428 r433  
    6666  LOGICAL, SAVE :: OFF_LINE_MODE = .FALSE.  
    6767  LOGICAL, SAVE :: check_time = .FALSE. 
    68   PUBLIC check_time, l_first_intersurf 
     68!!$ DS : ajout du flag IMPOSE_PARAM 
     69  ! Flag impos_param : should we read the parameters in the run.def file ? 
     70  LOGICAL, SAVE :: impose_param = .TRUE. 
    6971  ! 
    70 !!$ DS : ajout du flag IMPOSE_PARAM 
    71   ! Flag impos_param : it is set to true by default 
    72   LOGICAL, SAVE :: impose_param = .TRUE. 
     72  PUBLIC check_time, l_first_intersurf,impose_param 
    7373  ! 
    7474CONTAINS 
     
    28122812       WRITE(numout,*) 'WATCHOUT file :', watchout_file 
    28132813    ENDIF 
    2814  
    28152814    ! 
    28162815    !Config Key  = RIVER_ROUTING 
     
    28242823    CALL getin_p('RIVER_ROUTING', control_flags%river_routing) 
    28252824    WRITE(numout,*) "RIVER routing is activated : ",control_flags%river_routing 
    2826     ! 
    2827  
    28282825    ! 
    28292826    !Config key = HYDROL_CWRR 
     
    28442841    ENDIF 
    28452842    ! 
    2846  
    2847     ! 
    28482843    !Config Key  = STOMATE_OK_CO2 
    28492844    !Config Desc = Activate CO2? 
     
    28552850    WRITE(numout,*) 'photosynthesis: ', control_flags%ok_co2 
    28562851    ! 
    2857  
    2858     ! 
    28592852    !Config Key  = STOMATE_OK_STOMATE 
    28602853    !Config Desc = Activate STOMATE? 
     
    28652858    CALL getin_p('STOMATE_OK_STOMATE',control_flags%ok_stomate) 
    28662859    WRITE(numout,*) 'STOMATE is activated: ',control_flags%ok_stomate 
    2867     ! 
    2868  
    28692860    ! 
    28702861    !Config Key  = STOMATE_OK_DGVM 
Note: See TracChangeset for help on using the changeset viewer.