Ignore:
Timestamp:
2011-07-26T11:04:04+02:00 (13 years ago)
Author:
didier.solyga
Message:

Delete all default initializations of arrays by zero. Externalized llaimax and height_presc because they are read even if NOT(impveg). Activate getin when the corresponding flag is activated

File:
1 edited

Legend:

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

    r312 r343  
    512512 
    513513   ! 
    514    ! 1. Initialisation !! not all the parameters are initialized  
    515    ! 
    516  
    517    !- 
    518    ! Vegetation structure  
    519    !- 
    520    ! 
    521    ! 1 .Sechiba 
    522    ! 
    523    veget_ori_fixed_test_1(:) = zero 
    524    llaimax(:) = zero 
    525    llaimin(:) = zero 
    526    height_presc(:) = zero 
    527    rveg_pft(:) = zero 
    528    ! 
    529    ! 2 .Stomate 
    530    ! 
    531    leaf_tab(:) = zero_int 
    532    sla(:) = zero    
    533    !- 
    534    ! Evapotranspiration -  sechiba 
    535    !- 
    536    rstruct_const(:) = zero 
    537    kzero(:) = zero 
    538    !- 
    539    ! Water - sechiba 
    540    !- 
    541    wmax_veg(:) = zero 
    542    humcste(:) = zero 
    543    throughfall_by_pft(:) = zero 
    544    !- 
    545    ! Albedo - sechiba 
    546    !- 
    547    snowa_ini(:) = zero 
    548    snowa_dec(:) = zero 
    549    alb_leaf_vis(:) = zero 
    550    alb_leaf_nir(:) = zero 
    551    !- 
    552    ! Soil - vegetation 
    553    !- 
    554    pref_soil_veg_sand(:) = zero_int 
    555    pref_soil_veg_loan(:) = zero_int 
    556    pref_soil_veg_clay(:) = zero_int 
    557    !- 
    558    ! Photosynthesis 
    559    !- 
    560    ! 
    561    ! 1 .CO2 
    562    ! 
    563    gsslope(:) = zero 
    564    gsoffset(:) = zero 
    565    vcmax_fix(:) = zero 
    566    vjmax_fix(:) = zero 
    567    co2_tmin_fix(:) = zero 
    568    co2_topt_fix(:) = zero 
    569    co2_tmax_fix(:) = zero 
    570    ext_coeff(:) = zero 
    571    ! 
    572    ! 2 .Stomate 
    573    ! 
    574    vcmax_opt(:) = zero 
    575    vjmax_opt(:) = zero 
    576    tphoto_min_a(:) = zero 
    577    tphoto_min_b(:) = zero 
    578    tphoto_min_c(:) = zero 
    579    tphoto_opt_a(:) = zero 
    580    tphoto_opt_b(:) = zero 
    581    tphoto_opt_c(:) = zero 
    582    tphoto_max_a(:) = zero 
    583    tphoto_max_b(:) = zero 
    584    tphoto_max_c(:) = zero 
    585    !- 
    586    ! Respiration - stomate 
    587    !- 
    588    maint_resp_slope_c(:) = zero 
    589    maint_resp_slope_b(:) = zero 
    590    maint_resp_slope_a(:) = zero 
    591    cm_zero_leaf(:) = zero 
    592    cm_zero_sapabove(:) = zero 
    593    cm_zero_sapbelow(:) = zero 
    594    cm_zero_heartabove(:) = zero 
    595    cm_zero_heartbelow(:) = zero 
    596    cm_zero_root(:) = zero 
    597    cm_zero_fruit(:) = zero 
    598    cm_zero_carbres(:) = zero 
    599    !- 
    600    ! Fire - stomate 
    601    !- 
    602    !  
    603    flam(:) = zero 
    604    resist(:) = zero 
    605    !- 
    606    ! Flux - LUC 
    607    !- 
    608    coeff_lcchange_1(:) = zero 
    609    coeff_lcchange_10(:) = zero 
    610    coeff_lcchange_100(:) = zero 
    611    !- 
    612    ! Phenology 
    613    !- 
    614    ! 
    615    ! 1 .Stomate 
    616    ! 
    617    lai_max(:) = zero 
    618    pheno_type(:) = zero_int 
    619    ! 
    620    ! 2. Leaf Onset 
    621    ! 
    622    pheno_gdd_crit_c(:) = zero 
    623    pheno_gdd_crit_b(:) = zero 
    624    pheno_gdd_crit_a(:) = zero 
    625    ngd_crit(:) = zero 
    626    ncdgdd_temp(:) = zero 
    627    hum_frac(:) = zero 
    628    lowgpp_time(:) = zero 
    629    hum_min_time(:) = zero 
    630    tau_sap(:) = zero 
    631    tau_fruit(:) = zero 
    632    ecureuil(:) = zero 
    633    alloc_min(:) = zero 
    634    alloc_max(:) = zero 
    635    demi_alloc(:) = zero   
    636   !>> DS new for merge in the trunk 15/06/2011 
    637    leaflife_tab(:) = zero 
    638    ! 
    639    ! 3. Senescence 
    640    ! 
    641    leaffall(:) = zero 
    642    leafagecrit(:) = zero 
    643    senescence_hum(:) = zero 
    644    nosenescence_hum(:) = zero 
    645    max_turnover_time(:) = zero    
    646    min_turnover_time(:) = zero  
    647    min_leaf_age_for_senescence(:) = zero  
    648    senescence_temp_c(:) = zero  
    649    senescence_temp_b(:) = zero  
    650    senescence_temp_a(:) = zero  
    651    !- 
    652    ! DGVM 
    653    !- 
    654    residence_time(:) = zero 
    655    tmin_crit(:) = zero 
    656    tcm_crit(:) = zero 
    657    !- 
    658    !  Internal_parameters 
    659    !- 
    660    lai_initmin(:) = zero 
    661    bm_sapl(:,:) = zero 
    662    migrate(:) = zero 
    663    maxdia(:) = zero 
    664    cn_sapl(:) = zero 
    665    leaf_timecst(:) = zero   
    666  
    667  
    668    ! 
    669    ! 2. Correspondance between the PFTs values and thes MTCs values  
     514   ! 1. Correspondance between the PFTs values and thes MTCs values  
    670515   ! 
    671516  
    672517   DO j= 1, nvm 
    673  
    674518 
    675519      PFT_name(j) = MTC_name(pft_to_mtc(j)) 
     
    1099943  IF(first_call) THEN 
    1100944 
    1101      ! No calling to getin for veget_ori_fixed_test_1, llaimax and height_presc 
    1102      ! use of setvar in slowproc.f90 
    1103  
    1104945     !- 
    1105946     ! Vegetation structure 
    1106947     !- 
     948     CALL getin_p('SECHIBA_LAI',llaimax) 
    1107949     CALL getin_p('LLAIMIN',llaimin) 
     950     CALL getin_p('SLOWPROC_HEIGHT', height_presc) 
    1108951     CALL getin('TYPE_OF_LAI',type_of_lai) 
    1109952     CALL getin_p('IS_TREE',is_tree) 
Note: See TracChangeset for help on using the changeset viewer.