Changeset 4662 for palm/trunk/SOURCE
- Timestamp:
- Sep 2, 2020 1:40:38 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/radiation_model_mod.f90
r4661 r4662 28 28 ! ----------------- 29 29 ! $Id$ 30 ! Bugfix of LAD in CSF generation in legacy raytracing 31 ! 32 ! 4661 2020-09-01 16:00:22Z pavelkrc 30 33 ! Bugfix for rad_angular_discretization = .FALSE. 31 34 ! … … 6877 6880 INTEGER(iwp) :: nzptl, nzubl, nzutl 6878 6881 REAL(wp) :: mrl 6879 REAL(wp), PARAMETER :: eps_lad = 1E-10_wp !< minimum considered nonzero6880 6882 #if defined( __parallel ) 6881 6883 INTEGER(iwp), DIMENSION(:), POINTER, SAVE :: gridsurf_rma !< fortran pointer, but lower bounds are 1 … … 6917 6919 6918 6920 DO k = nzt+1, 1, -1 6919 IF ( lad_s(k,j,i) > eps_lad) THEN6921 IF ( lad_s(k,j,i) > 0.0_wp ) THEN 6920 6922 !-- we are at the top of the pcs 6921 6923 pct(j,i) = k + k_topo 6922 6924 pch(j,i) = k 6923 npcbl = npcbl + 1 + COUNT(lad_s(1:k-1,j,i) > eps_lad)6925 npcbl = npcbl + COUNT(lad_s(1:k,j,i) > 0.0_wp) 6924 6926 EXIT 6925 6927 ENDIF … … 7031 7033 7032 7034 DO k = k_topo + 1, pct(j,i) 7033 IF ( lad_s(k-k_topo,j,i) > eps_lad) THEN7035 IF ( lad_s(k-k_topo,j,i) > 0.0_wp ) THEN 7034 7036 ipcgb = ipcgb + 1 7035 7037 gridpcbl(k,j,i) = ipcgb … … 8624 8626 lad_s_target = sub_lad(boxes(1,i),boxes(2,i),boxes(3,i)) 8625 8627 #endif 8628 IF ( lad_s_target <= 0.0_wp ) CYCLE ! under LAD top, but LAD=0 8629 8626 8630 cursink = 1._wp - exp(-ext_coef * lad_s_target * crlens(i)*realdist) 8627 8631
Note: See TracChangeset
for help on using the changeset viewer.