Ignore:
Timestamp:
Nov 2, 2015 7:43:04 AM (8 years ago)
Author:
maronga
Message:

minor bugfixes for radiation model. bugfix in subjob

File:
1 edited

Legend:

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

    r1692 r1701  
    1919! Current revisions:
    2020! -----------------
    21 !
     21! Bugfixes: wrong index for output of timeseries, setting of nz_snd_end
    2222!
    2323! Former revisions:
     
    628628       dots_num = dots_num + 5
    629629
    630        dots_label(dots_rad+1) = "rad_net"
    631        dots_label(dots_rad+2) = "rad_lw_in"
    632        dots_label(dots_rad+3) = "rad_lw_out"
    633        dots_label(dots_rad+4) = "rad_sw_in"
    634        dots_label(dots_rad+5) = "rad_sw_out"
     630       dots_label(dots_rad) = "rad_net"
     631       dots_label(dots_rad+1) = "rad_lw_in"
     632       dots_label(dots_rad+2) = "rad_lw_out"
     633       dots_label(dots_rad+3) = "rad_sw_in"
     634       dots_label(dots_rad+4) = "rad_sw_out"
    635635       dots_unit(dots_rad:dots_rad+4) = "W/m2"
    636636
     
    11611161!
    11621162! !--    Allocate temporary array for storing pressure data
    1163        ALLOCATE( hyp_snd_tmp(nzb+1:nz_snd) )
     1163       ALLOCATE( hyp_snd_tmp(1:nz_snd) )
    11641164       hyp_snd_tmp = 0.0_wp
    11651165
     
    11731173!
    11741174!--    Allocate temporary array for storing temperature data
    1175        ALLOCATE( t_snd_tmp(nzb+1:nz_snd) )
     1175       ALLOCATE( t_snd_tmp(1:nz_snd) )
    11761176       t_snd_tmp = 0.0_wp
    11771177
     
    11861186!--    Calculate start of sounding data
    11871187       nz_snd_start = nz_snd + 1
    1188        nz_snd_end   = nz_snd_end
     1188       nz_snd_end   = nz_snd + 1
    11891189
    11901190!
     
    11991199
    12001200       IF ( nz_snd_start <= nz_snd )  THEN
    1201           nz_snd_end = nz_snd - 1
     1201          nz_snd_end = nz_snd
    12021202       END IF
    12031203
     
    12051205!
    12061206!--    Calculate of total grid points for RRTMG calculations
    1207        nzt_rad = nzt + nz_snd_end - nz_snd_start + 2
     1207       nzt_rad = nzt + nz_snd_end - nz_snd_start + 1
    12081208
    12091209!
Note: See TracChangeset for help on using the changeset viewer.