Changeset 2688 for palm/trunk/SOURCE
- Timestamp:
- Dec 12, 2017 5:27:04 PM (7 years ago)
- Location:
- palm/trunk/SOURCE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/check_parameters.f90
r2669 r2688 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Check if humidity is set to TRUE in the _p3d file for coupled runs 28 ! 29 ! 2669 2017-12-06 16:03:27Z raasch 27 30 ! mrun-string replaced by palmrun 28 31 ! … … 647 650 648 651 ! 652 !-- Check if humidity is set to TRUE in case of the atmospheric run (for coupled runs) 653 IF ( coupling_mode == 'atmosphere_to_ocean' .AND. humidity == .FALSE.) THEN 654 message_string = ' Humidity has to be set to .T. in the _p3d file for ' // & 655 'coupled runs between ocean and atmosphere.' 656 CALL message( 'check_parameters', 'PA0476', 1, 2, 0, 6, 0 ) 657 ENDIF 658 659 ! 649 660 !-- Check dt_coupling, restart_time, dt_restart, end_time, dx, dy, nx and ny 650 661 IF ( coupling_mode /= 'uncoupled' .AND. & -
palm/trunk/SOURCE/surface_mod.f90
r2638 r2688 26 26 ! ----------------- 27 27 ! $Id$ 28 ! Allocation and initialization of the latent heat flux (qsws) at the top of 29 ! the ocean domain in case of coupled runs. In addtion, a double if-query has 30 ! been removed. 31 ! 32 ! 2638 2017-11-23 12:44:23Z raasch 28 33 ! bugfix for constant top momentumflux 29 34 ! … … 822 827 ! 823 828 !-- Latent heat flux 824 IF ( humidity ) THEN829 IF ( humidity .OR. coupling_mode == 'ocean_to_atmosphere') THEN 825 830 ALLOCATE ( surfaces%qsws(1:surfaces%ns) ) 826 831 ENDIF … … 1518 1523 IF ( coupling_mode == 'ocean_to_atmosphere' ) THEN 1519 1524 surf%shf(num_h) = 0.0_wp 1525 surf%qsws(num_h) = 0.0_wp 1520 1526 ENDIF 1521 1527 ! … … 1540 1546 IF ( ocean .AND. constant_top_salinityflux) & 1541 1547 surf%sasws(num_h) = top_salinityflux 1542 !1543 !-- Initialization in case of a coupled model run1544 IF ( coupling_mode == 'ocean_to_atmosphere' ) THEN1545 surf%shf(num_h) = 0.0_wp1546 ENDIF1547 1548 ! 1548 1549 !-- Top momentum fluxes
Note: See TracChangeset
for help on using the changeset viewer.