Changeset 2698 for palm/trunk/SOURCE/radiation_model_mod.f90
- Timestamp:
- Dec 14, 2017 6:46:24 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/radiation_model_mod.f90
r2696 r2698 20 20 ! Current revisions: 21 21 ! ----------------- 22 ! 22 ! Bugfix in get_topography_top_index 23 23 ! 24 24 ! Former revisions: … … 272 272 273 273 USE surface_mod, & 274 ONLY: get_topography_top_index, surf_def_h, surf_def_v, surf_lsm_h, & 274 ONLY: get_topography_top_index, get_topography_top_index_ji, & 275 surf_def_h, surf_def_v, surf_lsm_h, & 275 276 surf_lsm_v, surf_type, surf_usm_h, surf_usm_v 276 277 … … 3244 3245 ! 3245 3246 !-- Obtain topography top index (lower bound of RRTMG) 3246 k_topo = get_topography_top_index ( j, i, 's' )3247 k_topo = get_topography_top_index_ji( j, i, 's' ) 3247 3248 3248 3249 IF ( lw_radiation ) THEN … … 4411 4412 pc_heating_rate, lad_s, prototype_lad, usm_lad_rma 4412 4413 4413 USE surface_mod, &4414 ONLY: get_topography_top_index, surf_lsm_h, surf_lsm_v, surf_usm_h,&4415 surf_usm_v4416 4417 4414 IMPLICIT NONE 4418 4415 … … 4448 4445 ! 4449 4446 !-- Find topography top index 4450 k_topo = get_topography_top_index ( j, i, 's' )4447 k_topo = get_topography_top_index_ji( j, i, 's' ) 4451 4448 4452 4449 DO k = nzt+1, 0, -1 … … 4553 4550 DO j = ijdb(3,ids), ijdb(4,ids) 4554 4551 4555 k_topo = get_topography_top_index ( j, i, 's' )4556 k_topo2 = get_topography_top_index ( j-jdir(ids), i-idir(ids), 's' )4552 k_topo = get_topography_top_index_ji( j, i, 's' ) 4553 k_topo2 = get_topography_top_index_ji( j-jdir(ids), i-idir(ids), 's' ) 4557 4554 4558 4555 … … 4572 4569 DO j = nys, nyn 4573 4570 !-- Find topography top index 4574 k_topo = get_topography_top_index ( j, i, 's' )4571 k_topo = get_topography_top_index_ji( j, i, 's' ) 4575 4572 k = nzut - k_topo 4576 4573 nsurfl = nsurfl + 6 * k … … 4593 4590 ! 4594 4591 !-- Find topography top index 4595 k_topo = get_topography_top_index ( j, i, 's' )4592 k_topo = get_topography_top_index_ji( j, i, 's' ) 4596 4593 4597 4594 DO k = k_topo + 1, pct(j,i) … … 4709 4706 DO i = ijdb(1,ids), ijdb(2,ids) 4710 4707 DO j = ijdb(3,ids), ijdb(4,ids) 4711 k_topo = get_topography_top_index ( j, i, 's' )4712 k_topo2 = get_topography_top_index ( j-jdir(ids), i-idir(ids), 's' )4708 k_topo = get_topography_top_index_ji( j, i, 's' ) 4709 k_topo2 = get_topography_top_index_ji( j-jdir(ids), i-idir(ids), 's' ) 4713 4710 4714 4711 DO k = MAX(k_topo,k_topo2)+1, nzut … … 4727 4724 DO i = nxl, nxr 4728 4725 DO j = nys, nyn 4729 k_topo = get_topography_top_index ( j, i, 's' )4726 k_topo = get_topography_top_index_ji( j, i, 's' ) 4730 4727 4731 4728 !-- add upward surface … … 4746 4743 DO i = nxl, nxr 4747 4744 DO j = nys, nyn 4748 k_topo = get_topography_top_index ( j, i, 's' )4745 k_topo = get_topography_top_index_ji( j, i, 's' ) 4749 4746 !-- north 4750 4747 IF ( j /= ny ) THEN … … 4752 4749 jr = min(max(j-jdir(ids),0),ny) 4753 4750 ir = min(max(i-idir(ids),0),nx) 4754 k_topo2 = get_topography_top_index ( jr, ir, 's' )4751 k_topo2 = get_topography_top_index_ji( jr, ir, 's' ) 4755 4752 DO k = MAX(k_topo,k_topo2)+1, nzut 4756 4753 isurf = isurf + 1 … … 4763 4760 jr = min(max(j-jdir(ids),0),ny) 4764 4761 ir = min(max(i-idir(ids),0),nx) 4765 k_topo2 = get_topography_top_index ( jr, ir, 's' )4762 k_topo2 = get_topography_top_index_ji( jr, ir, 's' ) 4766 4763 4767 4764 DO k = MAX(k_topo,k_topo2)+1, nzut … … 4775 4772 jr = min(max(j-jdir(ids),0),ny) 4776 4773 ir = min(max(i-idir(ids),0),nx) 4777 k_topo2 = get_topography_top_index ( jr, ir, 's' )4774 k_topo2 = get_topography_top_index_ji( jr, ir, 's' ) 4778 4775 4779 4776 DO k = MAX(k_topo,k_topo2)+1, nzut … … 4787 4784 jr = min(max(j-jdir(ids),0),ny) 4788 4785 ir = min(max(i-idir(ids),0),nx) 4789 k_topo2 = get_topography_top_index ( jr, ir, 's' )4786 k_topo2 = get_topography_top_index_ji( jr, ir, 's' ) 4790 4787 4791 4788 DO k = MAX(k_topo,k_topo2)+1, nzut … … 5255 5252 ! 5256 5253 !-- Following expression equals former kk = k - nzb_s_inner(j,i) 5257 kk = k - get_topography_top_index ( j, i, 's' ) !- lad arrays are defined flat5254 kk = k - get_topography_top_index_ji( j, i, 's' ) !- lad arrays are defined flat 5258 5255 pc_heating_rate(kk, j, i) = (pcbinsw(ipcgb) + pcbinlw(ipcgb)) & 5259 5256 * pchf_prep(k) * pt(k, j, i) !-- = dT/dt … … 5856 5853 DO i = nxl, nxr 5857 5854 DO j = nys, nyn 5858 k = get_topography_top_index ( j, i, 's' )5855 k = get_topography_top_index_ji( j, i, 's' ) 5859 5856 5860 5857 usm_lad(k:nzut, j, i) = lad_s(0:nzut-k, j, i)
Note: See TracChangeset
for help on using the changeset viewer.