Ignore:
Timestamp:
Feb 4, 2020, 10:36:32 PM (4 years ago)
Author:
lguez
Message:

If the ocean skin parameterization is working actively
(activate_ocean_skin == 2) and we are coupled to the ocean then send
ocean-air interface salinity to the ocean. New dummy argument s_int
of procedures ocean_cpl_noice and cpl_send_ocean_fields. We can
only send interface salinity from the previous time-step since
communication with the ocean is before the call to bulk_flux. So make
s_int a state variable: move s_int from phys_output_var_mod to
phys_state_var_mod. Still, we only read s_int from startphy,
define it before the call to surf_ocean and write it to restartphy
if activate_ocean_skin == 2 and type_ocean == 'couple'. In
procedure pbl_surface, for clarity, move the definition of output
variables t_int, dter, dser, tkt, tks, rf, taur to missing_val to
after the call to surf_ocean, with the definition of s_int,
ds_ns, dt_ns to missing_val. This does not change anything for
t_int, dter, dser, tkt, tks, rf, taur. In pbl_surface_newfrac, we
choose to set s_int to 35 for an appearing ocean point, this is
questionable. In surf_ocean, change the intent of s_int from out
to inout.

File:
1 edited

Legend:

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

    r3627 r3628  
    7777    REAL, DIMENSION(klon), INTENT(inOUT):: z0h
    7878
     79    real, intent(inout):: s_int(:) ! (knon) ocean-air interface salinity, in ppt
     80
    7981    REAL, intent(inout):: ds_ns(:) ! (knon)
    8082    ! "delta salinity near surface". Salinity variation in the
     
    103105
    104106    REAL, intent(out):: t_int(:) ! (knon) ocean-air interface temperature, in K
    105     real, intent(out):: s_int(:) ! (knon) ocean-air interface salinity, in ppt
    106107
    107108    REAL, intent(out):: dter(:) ! (knon)
     
    190191            radsol, snow, agesno, &
    191192            qsurf, evap, fluxsens, fluxlat, flux_u1, flux_v1, &
    192             tsurf_new, dflux_s, dflux_l, sss)
     193            tsurf_new, dflux_s, dflux_l, sss, s_int)
    193194
    194195    CASE('slab')
Note: See TracChangeset for help on using the changeset viewer.