Ignore:
Timestamp:
May 27, 2020, 4:52:16 PM (4 years ago)
Author:
lguez
Message:

Modify sensible heat due to rain sent to the ocean

Modify the sensible heat flux due to rain which is sent to the
ocean. Replace the computation of sens_prec_liq in procedure
calcul_fluxs by a call to sens_heat_rain. Set sens_prec_sol in
procedure calcul_fluxs to 0 because, for now, sens_heat_rain is
supposed to account for both rain and snow.

For the call to sens_heat_rain in procedure calcul_fluxs, we need
an additional dummy argument rhoa of calcul_fluxs. Add dummy
argument rhoa to ocean_cpl_noice, ocean_forced_noice,
ocean_forced_ice and ocean_cpl_ice because we need to pass it down
to calcul_fluxs.

Change the dimension of sens_prec_liq and sens_prec_sol in
procedures calcul_fluxs, ocean_cpl_noice, ocean_cpl_ice,
ocean_forced_noice, ocean_forced_ice, cpl_send_ocean_fields and
cpl_send_seaice_fields to knon.

In procedures ocean_forced_noice and ocean_cpl_noice, promote
sens_prec_liq from local variable to dummy argument because we need
it in surf_ocean. Remove useless initialization of sens_prec_liq
and sens_prec_sol in ocean_cpl_noice, ocean_cpl_ice,
ocean_forced_ice and ocean_forced_noice: they are intent out in
calcul_fluxs.

Remove variable rf of module phys_output_var_mod, we use
sens_prec_liq instead. Remove local variable yrf of procedure
pbl_surface. rf and yrf appeared in pbl_surface only to be output.
Remove variable o_rf of module phys_output_ctrlout_mod. Remove
dummy argument rf of procedure surf_ocean.

Do not call sens_heat_rain in surf_ocean since we now call it
from calcul_fluxs. Move the computation of rhoa in surf_ocean
before the calls to ocean_cpl_noice and ocean_forced_noice.

Add the computation of rhoa in surf_seaice, to pass it down to
ocean_cpl_ice and ocean_forced_ice.

If activate_ocean_skin == 1 then the results are changed because the
call to sens_heat_rain in calcul_fluxs now uses the SST from the
current time step of physics. On this point, the present revision
reverses revision [3463].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Ocean_skin/libf/phylmd/ocean_cpl_mod.F90

    r3628 r3687  
    5555       radsol, snow, agesno, &
    5656       qsurf, evap, fluxsens, fluxlat, flux_u1, flux_v1, &
    57        tsurf_new, dflux_s, dflux_l, sss, s_int)
     57       tsurf_new, dflux_s, dflux_l, sens_prec_liq, sss, s_int, rhoa)
    5858
    5959!
     
    9393    REAL, DIMENSION(klon), INTENT(IN)        :: tsurf_in
    9494    real, intent(in):: s_int(:) ! (knon) ocean-air interface salinity, in ppt
     95    real, intent(in):: rhoa(:) ! (knon) density of moist air  (kg / m3)
    9596
    9697! In/Output arguments
     
    107108    REAL, DIMENSION(klon), INTENT(OUT)       :: tsurf_new
    108109    REAL, DIMENSION(klon), INTENT(OUT)       :: dflux_s, dflux_l     
     110    REAL, intent(out):: sens_prec_liq(:) ! (knon)
    109111
    110112    REAL, INTENT(OUT):: sss(:) ! (klon)
     
    122124    REAL, DIMENSION(klon) :: u1_lay, v1_lay
    123125    LOGICAL               :: check=.FALSE.
    124     REAL, DIMENSION(klon) :: sens_prec_liq, sens_prec_sol   
     126    REAL sens_prec_sol(knon) 
    125127    REAL, DIMENSION(klon) :: lat_prec_liq, lat_prec_sol   
    126128
     
    145147    dif_grnd = 0.
    146148    agesno(:) = 0.
    147     sens_prec_liq = 0.; sens_prec_sol = 0.; lat_prec_liq = 0.; lat_prec_sol = 0.
     149    lat_prec_liq = 0.; lat_prec_sol = 0.
    148150   
    149151
     
    160162         f_qsat_oce,AcoefH, AcoefQ, BcoefH, BcoefQ, &
    161163         tsurf_new, evap, fluxlat, fluxsens, dflux_s, dflux_l, &
    162          sens_prec_liq, sens_prec_sol, lat_prec_liq, lat_prec_sol)
     164         sens_prec_liq, sens_prec_sol, lat_prec_liq, lat_prec_sol, rhoa)
    163165
    164166    if (activate_ocean_skin == 2) then
     
    226228       radsol, snow, qsurf, &
    227229       alb1_new, alb2_new, evap, fluxsens, fluxlat, flux_u1, flux_v1, &
    228        tsurf_new, dflux_s, dflux_l)
     230       tsurf_new, dflux_s, dflux_l, rhoa)
    229231!
    230232! This subroutine treats the ocean where there is ice. The subroutine first receives
     
    261263    REAL, DIMENSION(klon), INTENT(IN)        :: u1, v1, gustiness
    262264    REAL, DIMENSION(klon,nbsrf), INTENT(IN)  :: pctsrf
     265    real, intent(in):: rhoa(:) ! (knon) density of moist air  (kg / m3)
    263266
    264267! In/output arguments
     
    288291    REAL, DIMENSION(klon)   :: u0, v0
    289292    REAL, DIMENSION(klon)   :: u1_lay, v1_lay
    290     REAL, DIMENSION(klon) :: sens_prec_liq, sens_prec_sol    
     293    REAL sens_prec_liq(knon), sens_prec_sol(knon)   
    291294    REAL, DIMENSION(klon) :: lat_prec_liq, lat_prec_sol   
    292295
     
    296299    IF (check) WRITE(*,*)'Entering surface_seaice, knon=',knon
    297300
    298     sens_prec_liq = 0.; sens_prec_sol = 0.; lat_prec_liq = 0.; lat_prec_sol = 0.
     301    lat_prec_liq = 0.; lat_prec_sol = 0.
    299302
    300303!****************************************************************************************
     
    329332         f_qsat_oce,AcoefH, AcoefQ, BcoefH, BcoefQ, &
    330333         tsurf_new, evap, fluxlat, fluxsens, dflux_s, dflux_l, &
    331          sens_prec_liq, sens_prec_sol, lat_prec_liq, lat_prec_sol)
     334         sens_prec_liq, sens_prec_sol, lat_prec_liq, lat_prec_sol, rhoa)
    332335    do j = 1, knon
    333336      i = knindex(j)
Note: See TracChangeset for help on using the changeset viewer.