Changeset 2219 for palm/trunk
- Timestamp:
- May 9, 2017 2:16:14 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/pmc_interface_mod.f90
r2177 r2219 680 680 681 681 ! 682 !-- Check that the child rendomain is completely inside the parent domain.682 !-- Check that the child domain is completely inside the parent domain. 683 683 xez = ( nbgp + 1 ) * dx 684 684 yez = ( nbgp + 1 ) * dy … … 2166 2166 2167 2167 ! 2168 !-- Default values :2168 !-- Default values for under-relaxation lengths: 2169 2169 IF ( anterp_relax_length_l < 0.0_wp ) THEN 2170 2170 anterp_relax_length_l = 0.1_wp * ( nx + 1 ) * dx … … 4123 4123 !-- valid anyway in such locations. 4124 4124 IF ( topography /= 'flat' ) THEN 4125 4125 4126 IF ( var == 'u' .OR. var == 'w' ) THEN 4126 4127 4127 ! 4128 4128 !-- Solid surface only on south/north side of the node … … 4130 4130 DO k = kb(j,i)+1, nzt_topo_nestbc 4131 4131 IF ( ( logc(2,k,j) /= 0 ) .AND. ( logc(1,k,j) == 0 ) ) THEN 4132 4133 4132 ! 4134 4133 !-- Direction of the wall-normal index is carried in as the … … 4138 4137 DO jcorr = 0, ncorr-1 4139 4138 jco = j + jinc * jcorr 4140 f(k,jco,i) = logc_ratio(2,jcorr,k,j) * f(k,j1,i) 4139 IF ( jco >= nys .AND. jco <= nyn ) THEN 4140 f(k,jco,i) = logc_ratio(2,jcorr,k,j) * f(k,j1,i) 4141 ENDIF 4141 4142 ENDDO 4142 4143 ENDIF … … 4144 4145 ENDDO 4145 4146 ENDIF 4146 4147 4147 ! 4148 4148 !-- Solid surface on both below and on south/north side of the node … … 4156 4156 DO jcorr = 0, ncorr-1 4157 4157 jco = j + jinc * jcorr 4158 DO kcorr = 0, ncorr-1 4159 kco = k + kcorr 4160 f(kco,jco,i) = 0.5_wp * ( logc_ratio(1,kcorr,k,j) * & 4161 f(k1,j,i) & 4162 + logc_ratio(2,jcorr,k,j) * & 4163 f(k,j1,i) ) 4164 ENDDO 4158 IF ( jco >= nys .AND. jco <= nyn ) THEN 4159 DO kcorr = 0, ncorr-1 4160 kco = k + kcorr 4161 f(kco,jco,i) = 0.5_wp * ( logc_ratio(1,kcorr,k,j) * & 4162 f(k1,j,i) & 4163 + logc_ratio(2,jcorr,k,j) * & 4164 f(k,j1,i) ) 4165 ENDDO 4166 ENDIF 4165 4167 ENDDO 4166 4168 ENDIF … … 4324 4326 !-- locations. 4325 4327 IF ( topography /= 'flat' ) THEN 4328 4326 4329 IF ( var == 'v' .OR. var == 'w' ) THEN 4327 4330 DO i = nxl, nxr 4328 4331 DO k = kb(j,i), nzt_topo_nestbc 4329 4330 4332 ! 4331 4333 !-- Solid surface only on left/right side of the node 4332 4334 IF ( ( logc(2,k,i) /= 0 ) .AND. ( logc(1,k,i) == 0 ) ) THEN 4333 4334 4335 ! 4335 4336 !-- Direction of the wall-normal index is carried in as the … … 4339 4340 DO icorr = 0, ncorr-1 4340 4341 ico = i + iinc * icorr 4341 f(k,j,ico) = logc_ratio(2,icorr,k,i) * f(k,j,i1) 4342 IF ( ico >= nxl .AND. ico <= nxr ) THEN 4343 f(k,j,ico) = logc_ratio(2,icorr,k,i) * f(k,j,i1) 4344 ENDIF 4342 4345 ENDDO 4343 4346 ENDIF … … 4345 4348 ENDDO 4346 4349 ENDIF 4347 4348 4350 ! 4349 4351 !-- Solid surface on both below and on left/right side of the node … … 4357 4359 DO icorr = 0, ncorr-1 4358 4360 ico = i + iinc * icorr 4359 DO kcorr = 0, ncorr-1 4360 kco = k + kcorr 4361 f(kco,i,ico) = 0.5_wp * ( logc_ratio(1,kcorr,k,i) * & 4362 f(k1,j,i) & 4363 + logc_ratio(2,icorr,k,i) * & 4364 f(k,j,i1) ) 4365 ENDDO 4361 IF ( ico >= nxl .AND. ico <= nxr ) THEN 4362 DO kcorr = 0, ncorr-1 4363 kco = k + kcorr 4364 f(kco,j,ico) = 0.5_wp * ( logc_ratio(1,kcorr,k,i) * & 4365 f(k1,j,i) & 4366 + logc_ratio(2,icorr,k,i) * & 4367 f(k,j,i1) ) 4368 ENDDO 4369 ENDIF 4366 4370 ENDDO 4367 4371 ENDIF … … 4797 4801 DO jj = jcsp, jcnm 4798 4802 ! 4799 !-- For simplicity anterpolate within buildings too 4803 !-- For simplicity anterpolate within buildings and under elevated 4804 !-- terrain too 4800 4805 DO kk = kcb, kct 4801 4806 !
Note: See TracChangeset
for help on using the changeset viewer.