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/land_surface_model_mod.f90

    r1818 r1826  
    1919! Current revisions:
    2020! -----------------
    21 !
     21! Cleanup after modularization
    2222!
    2323! Former revisions:
     
    532532    PUBLIC lsm_check_data_output, lsm_check_data_output_pr,                    &
    533533           lsm_check_parameters, lsm_energy_balance, lsm_header, lsm_init,     &
    534            lsm_init_arrays, lsm_parin, lsm_soil_model
     534           lsm_init_arrays, lsm_parin, lsm_soil_model, lsm_swap_timelevel
    535535!
    536536!-- Public parameters, constants and initial values
    537     PUBLIC alpha_vangenuchten, c_surface, canopy_resistance_coefficient,       &
    538            conserve_water_content, field_capacity,                             &
    539            f_shortwave_incoming, hydraulic_conductivity,                       &
    540            lambda_surface_stable, lambda_surface_unstable,                     &
    541            land_surface, leaf_area_index,                                      &
    542            lsm_swap_timelevel, l_vangenuchten,                                 &
    543            min_canopy_resistance, min_soil_resistance, n_vangenuchten,         &
    544            pave_heat_capacity, pave_depth, pave_heat_conductivity,             &
    545            residual_moisture, rho_cp, rho_lv, root_fraction,                   &
    546            saturation_moisture, skip_time_do_lsm, soil_moisture,               &
    547            soil_temperature, soil_type, soil_type_name, vegetation_coverage,   &
    548            veg_type, veg_type_name, wilting_point, z0_eb, z0h_eb, z0q_eb
     537    PUBLIC land_surface, skip_time_do_lsm
    549538
    550539!
     
    644633             unit = 'K'   
    645634             
    646           CASE ( 'c_liq*', 'c_soil*', 'c_veg*', 'ghf_eb*',      &
    647                  'm_liq_eb*', 'qsws_eb*',      &
    648                  'qsws_liq_eb*', 'qsws_soil_eb*', 'qsws_veg_eb*', &
     635          CASE ( 'lai*', 'c_liq*', 'c_soil*', 'c_veg*', 'ghf_eb*', 'm_liq_eb*',&
     636                 'qsws_eb*', 'qsws_liq_eb*', 'qsws_soil_eb*', 'qsws_veg_eb*',  &
    649637                 'r_a*', 'r_s*', 'shf_eb*' )
    650638             IF ( k == 0  .OR.  data_output(i)(ilen-2:ilen) /= '_xy' )  THEN
     
    654642                CALL message( 'check_parameters', 'PA0111', 1, 2, 0, 6, 0 )
    655643             ENDIF
    656 
     644             IF ( TRIM( var ) == 'lai*'  .AND.  .NOT.  land_surface )  THEN
     645                message_string = 'output of "' // TRIM( var ) // '" requi' //  &
     646                                 'res land_surface = .TRUE.'
     647                CALL message( 'check_parameters', 'PA0404', 1, 2, 0, 6, 0 )
     648             ENDIF
    657649             IF ( TRIM( var ) == 'c_liq*'  .AND.  .NOT.  land_surface )  THEN
    658650                message_string = 'output of "' // TRIM( var ) // '" requi' //  &
     
    716708             ENDIF
    717709
     710             IF ( TRIM( var ) == 'lai*'   )  unit = 'none'
    718711             IF ( TRIM( var ) == 'c_liq*' )  unit = 'none'
    719712             IF ( TRIM( var ) == 'c_soil*')  unit = 'none'
     
    156415571   FORMAT (//' Land surface model information:'/                              &
    15651558              ' ------------------------------'/)
    1566 2   FORMAT (' --> Soil bottom is closed (water content is conserved, default)')
    1567 3   FORMAT (' --> Soil bottom is open (water content is not conserved)')         
    1568 4   FORMAT (' --> Land surface type  : ',A,/                                   &
    1569             ' --> Soil porosity type : ',A)
     15592   FORMAT ('    --> Soil bottom is closed (water content is conserved',       &
     1560            ', default)')
     15613   FORMAT ('    --> Soil bottom is open (water content is not conserved)')         
     15624   FORMAT ('    --> Land surface type  : ',A,/                                &
     1563            '    --> Soil porosity type : ',A)
    157015645   FORMAT (/'    Initial soil temperature and moisture profile:'//            &
    15711565            '       Height:        ',A,'  m'/                                  &
     
    15731567            '       Moisture:      ',A,'  m**3/m**3'/                          &
    15741568            '       Root fraction: ',A,'  '/                                   &
    1575             '       Gridpoint:     ',A)
    1576 
    1577 
     1569            '       Grid point:    ',A)
    15781570
    15791571    END SUBROUTINE lsm_header
     
    16271619
    16281620       IF ( humidity )  THEN
    1629           qsws_eb = rho_l * l_v * qsws
     1621          qsws_eb = rho_lv * qsws
    16301622       ELSE
    16311623          qsws_eb = 0.0_wp
Note: See TracChangeset for help on using the changeset viewer.