Changeset 2478 for palm/trunk/SOURCE/surface_mod.f90
- Timestamp:
- Sep 18, 2017 1:37:24 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.