Changeset 1427
- Timestamp:
- Jul 7, 2014 2:04:59 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/surface_coupler.f90
r1419 r1427 20 20 ! Current revisions: 21 21 ! ------------------ 22 ! 22 ! Bugfix: value of l_v corrected. 23 23 ! 24 24 ! Former revisions: … … 72 72 total_2d_o, tswst, u, usws, uswst, v, vsws, vswst 73 73 74 USE cloud_parameters, & 75 ONLY: cp, l_v 76 74 77 USE control_parameters, & 75 78 ONLY: coupling_mode, coupling_mode_remote, coupling_topology, & … … 92 95 REAL(wp) :: time_since_reference_point_rem !: 93 96 REAL(wp) :: total_2d(-nbgp:ny+nbgp,-nbgp:nx+nbgp) !: 97 98 REAL(wp) :: cpw = 4218.0_wp !: heat capacity of water at constant pressure 94 99 95 100 #if defined( __parallel ) … … 399 404 !-- * latent heat of vaporization in m2/s2, or 540 cal/g, or 40.65 kJ/mol 400 405 !-- /(rho_atm(=1.0)*c_p) 401 tswst = tswst + qswst_remote * 2.2626108E6_wp / 1005.0_wp406 tswst = tswst + qswst_remote * l_v / cp 402 407 ! 403 408 !-- ...and convert it to a salinity flux at the sea surface (top) 404 409 !-- following Steinhorn (1991), JPO 21, pp. 1681-1683: 405 410 !-- S'w' = -S * evaporation / ( rho_water * ( 1 - S ) ) 406 saswst = -1.0_wp * sa(nzt,:,:) * 0.001 * qswst_remote / &407 ( rho(nzt,:,:) * ( 1.0_wp - sa(nzt,:,:) * 0.001 ) )411 saswst = -1.0_wp * sa(nzt,:,:) * 0.001_wp * qswst_remote / & 412 ( rho(nzt,:,:) * ( 1.0_wp - sa(nzt,:,:) * 0.001_wp ) ) 408 413 ENDIF 409 414 … … 412 417 !-- (constants are the specific heat capacities for air and water) 413 418 !-- now tswst is the ocean top heat flux 414 tswst = tswst / rho(nzt,:,:) * 1005.0_wp / 4218.0_wp419 tswst = tswst / rho(nzt,:,:) * cp / cpw 415 420 416 421 !
Note: See TracChangeset
for help on using the changeset viewer.