Changeset 2478
- Timestamp:
- Sep 18, 2017 1:37:24 PM (7 years ago)
- Location:
- palm/trunk/SOURCE
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/init_grid.f90
r2365 r2478 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Bugfix, correct flag for use_top 28 ! 29 ! 2365 2017-08-21 14:59:59Z kanani 27 30 ! Vertical nesting implemented (SadiqHuq) 28 31 ! … … 1554 1557 wall_flags_0(:,j,i) = IBSET( wall_flags_0(:,j,i), 9 ) 1555 1558 IF ( use_top_fluxes ) & 1556 wall_flags_0(nzt :nzt+1,j,i) = IBCLR( wall_flags_0(nzt:nzt+1,j,i), 9 )1559 wall_flags_0(nzt+1,j,i) = IBCLR( wall_flags_0(nzt+1,j,i), 9 ) 1557 1560 1558 1561 DO k = nzb+1, nzt -
palm/trunk/SOURCE/production_e.f90
r2329 r2478 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Bugfix, consider case where no constant-flux layer and no surfaces fluxes 28 ! are used 29 ! 30 ! 2329 2017-08-03 14:24:56Z knoop 27 31 ! Bugfix: added division by density as kinematic fluxes are needed 28 32 ! … … 432 436 ENDDO 433 437 434 ELSE IF ( use_surface_fluxes ) THEN438 ELSE 435 439 436 440 DO j = nys, nyn … … 1182 1186 ENDDO 1183 1187 1184 ELSE IF ( use_surface_fluxes ) THEN1188 ELSE 1185 1189 ! 1186 1190 !-- Calculate TKE production by shear. Here, no additional … … 1235 1239 !-- the bottom and top surface layer 1236 1240 DO k = nzb+1, nzt 1241 1237 1242 tend(k,j,i) = tend(k,j,i) + & 1238 1243 kh(k,j,i) * g / rho_reference * & … … 1241 1246 MERGE( 1.0_wp, 0.0_wp, & 1242 1247 BTEST( wall_flags_0(k,j,i), 0 ) & 1243 ) 1248 ) 1244 1249 ENDDO 1245 1250 … … 1323 1328 MERGE( 1.0_wp, 0.0_wp, & 1324 1329 BTEST( wall_flags_0(k,j,i), 0 ) & 1325 ) 1330 ) 1326 1331 ENDDO 1327 1332 -
palm/trunk/SOURCE/surface_mod.f90
r2378 r2478 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Bugfixes in initializing model top 28 ! 29 ! 2378 2017-08-31 13:57:27Z suehring 27 30 ! Bugfix in write restart data 28 31 ! … … 1492 1495 !-- Initialize top heat flux 1493 1496 IF ( constant_top_heatflux ) & 1494 surf%shf = top_heatflux * heatflux_input_conversion(nzt+1)1497 surf%shf(num_h) = top_heatflux * heatflux_input_conversion(nzt+1) 1495 1498 ! 1496 1499 !-- Initialization in case of a coupled model run 1497 1500 IF ( coupling_mode == 'ocean_to_atmosphere' ) THEN 1498 surf%shf = 0.0_wp1501 surf%shf(num_h) = 0.0_wp 1499 1502 ENDIF 1500 1503 ! 1501 1504 !-- Prescribe latent heat flux at the top 1502 1505 IF ( humidity ) THEN 1503 surf%qsws = 0.0_wp1506 surf%qsws(num_h) = 0.0_wp 1504 1507 IF ( cloud_physics .AND. microphysics_morrison ) THEN 1505 surf%ncsws = 0.0_wp1506 surf%qcsws = 0.0_wp1508 surf%ncsws(num_h) = 0.0_wp 1509 surf%qcsws(num_h) = 0.0_wp 1507 1510 ENDIF 1508 1511 IF ( cloud_physics .AND. microphysics_seifert ) THEN 1509 surf%nrsws = 0.0_wp1510 surf%qrsws = 0.0_wp1512 surf%nrsws(num_h) = 0.0_wp 1513 surf%qrsws(num_h) = 0.0_wp 1511 1514 ENDIF 1512 1515 ENDIF … … 1514 1517 !-- Prescribe top scalar flux 1515 1518 IF ( passive_scalar .AND. constant_top_scalarflux ) & 1516 surf%ssws = top_scalarflux1519 surf%ssws(num_h) = top_scalarflux 1517 1520 ! 1518 1521 !-- Prescribe top salinity flux 1519 IF ( ocean .AND. constant_top_salinityflux) 1520 surf%sasws = top_salinityflux1522 IF ( ocean .AND. constant_top_salinityflux) & 1523 surf%sasws(num_h) = top_salinityflux 1521 1524 ! 1522 1525 !-- Initialization in case of a coupled model run 1523 1526 IF ( coupling_mode == 'ocean_to_atmosphere' ) THEN 1524 surf%shf = 0.0_wp1527 surf%shf(num_h) = 0.0_wp 1525 1528 ENDIF 1526 1529 ! 1527 1530 !-- Top momentum fluxes 1528 surf%usws = top_momentumflux_u * momentumflux_input_conversion(nzt+1) 1529 surf%vsws = top_momentumflux_v * momentumflux_input_conversion(nzt+1) 1531 surf%usws(num_h) = top_momentumflux_u * & 1532 momentumflux_input_conversion(nzt+1) 1533 surf%vsws(num_h) = top_momentumflux_v * & 1534 momentumflux_input_conversion(nzt+1) 1530 1535 ! 1531 1536 !-- Increment surface indices
Note: See TracChangeset
for help on using the changeset viewer.