Ignore:
Timestamp:
Apr 7, 2016 12:01:39 PM (8 years ago)
Author:
maronga
Message:

further modularization of radiation model and plant canopy model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SOURCE/package_parin.f90

    r1823 r1826  
    1919! Current revisions:
    2020! -----------------
    21 !
     21! Reading of &radiation_par moved to radiation_model_mod.
     22! Reading of &canopy_par moved to plant_canopy_model_mod.
    2223!
    2324! Former revisions:
     
    3031!
    3132! 1817 2016-04-06 15:44:20Z maronga
    32 ! Reading of &lsmpar moved to land_surface_model_mod.
     33! Reading of &lsm_par moved to land_surface_model_mod.
    3334!
    3435! 1788 2016-03-10 11:01:04Z maronga
     
    152153               vertical_particle_advection, write_particle_statistics
    153154
    154     USE plant_canopy_model_mod,                                                &
    155         ONLY:  alpha_lad, beta_lad, calc_beta_lad_profile, canopy_drag_coeff,  &
    156                canopy_mode, cthf, lad_surface,                                 &
    157                lad_vertical_gradient, lad_vertical_gradient_level, lai_beta,   &
    158                leaf_scalar_exch_coeff, leaf_surface_conc, pch_index,           &
    159                plant_canopy
    160 
    161     USE radiation_model_mod,                                                   &
    162         ONLY: albedo, albedo_type, albedo_lw_dif, albedo_lw_dir, albedo_sw_dif,&
    163               albedo_sw_dir, constant_albedo, day_init, dt_radiation,          &
    164               emissivity, lambda, lw_radiation, net_radiation, radiation,      &
    165               radiation_scheme, skip_time_do_radiation, sw_radiation,          &
    166               time_utc_init, unscheduled_radiation_calls
    167                
    168 
    169155    USE spectrum,                                                              &
    170156        ONLY:  comp_spectra_level, data_output_sp, plot_spectra_level,         &
     
    175161    CHARACTER (LEN=80) ::  line  !<
    176162
    177     NAMELIST /canopy_par/         alpha_lad, beta_lad, canopy_drag_coeff,      &
    178                                   canopy_mode, cthf,                           &
    179                                   lad_surface,                                 &
    180                                   lad_vertical_gradient,                       &
    181                                   lad_vertical_gradient_level,                 &
    182                                   lai_beta,                                    &
    183                                   leaf_scalar_exch_coeff,                      &
    184                                   leaf_surface_conc, pch_index
     163
    185164
    186165    NAMELIST /dvrp_graphics_par/  clip_dvrp_l, clip_dvrp_n, clip_dvrp_r,       &
     
    220199                                  write_particle_statistics
    221200
    222     NAMELIST /radiation_par/      albedo, albedo_type, albedo_lw_dir,          &
    223                                   albedo_lw_dif, albedo_sw_dir, albedo_sw_dif, &
    224                                   constant_albedo, day_init, dt_radiation,     &
    225                                   lambda, lw_radiation, net_radiation,         &
    226                                   radiation_scheme, skip_time_do_radiation,    &
    227                                   sw_radiation, time_utc_init,                 &
    228                                   unscheduled_radiation_calls
    229 
    230201    NAMELIST /spectra_par/        averaging_interval_sp, comp_spectra_level,   &
    231202                                  data_output_sp, dt_dosp, plot_spectra_level, &
     
    237208!-- file at this line. Do the same for each optionally used package.
    238209    line = ' '
    239 
    240 !
    241 !-- Try to find canopy package
    242     REWIND ( 11 )
    243     line = ' '
    244     DO   WHILE ( INDEX( line, '&canopy_par' ) == 0 )
    245        READ ( 11, '(A)', END=10 )  line
    246     ENDDO
    247     BACKSPACE ( 11 )
    248 
    249 !
    250 !-- Read user-defined namelist
    251     READ ( 11, canopy_par )
    252 
    253 !
    254 !-- Set flag that indicates that canopy model is switched on
    255     plant_canopy = .TRUE.
    256 
    257 !
    258 !-- Set flag that indicates that the lad-profile shall be calculated by using
    259 !-- a beta probability density function
    260     IF ( alpha_lad /= 9999999.9_wp  .AND.  beta_lad /= 9999999.9_wp )          &
    261        calc_beta_lad_profile = .TRUE.
    262 
    263  10 CONTINUE
    264210
    265211
     
    317263
    318264
    319 !
    320 !-- Try to find radiation package
    321     REWIND ( 11 )
    322     line = ' '
    323     DO   WHILE ( INDEX( line, '&radiation_par' ) == 0 )
    324        READ ( 11, '(A)', END=51 )  line
    325     ENDDO
    326     BACKSPACE ( 11 )
    327 
    328 !
    329 !-- Read user-defined namelist
    330     READ ( 11, radiation_par )
    331 
    332 !
    333 !-- Set flag that indicates that the radiation scheme is switched on
    334     radiation = .TRUE.
    335 
    336  51 CONTINUE
    337265
    338266
Note: See TracChangeset for help on using the changeset viewer.