Ignore:
Timestamp:
Jul 1, 2020, 6:57:48 PM (4 years ago)
Author:
lguez
Message:

Store delta_sst instead of sst_nff

Store as a state variable the difference between ocean-air interface
temperature and bulk SST instead of sst_nff, which can be either
interface temperature or bulk SST. This is clearer. Also, it is
analoguous to what we will do with salinity.

So replace the two dummy arguments tsurf_in and sst_nff of
procedure cpl_send_ocean_fields by a single dummy argument
delta_sst. Replace dummy argument sst_nff of procedures
ocean_cpl_noice and surf_ocean by dummy argument
delta_sst. Replace variable sst_nff of module phys_state_var_mod
by variable delta_sst. Rename local variable ysst_nff of procedure
pbl_surface to ydelta_sst. Set variable delta_sst of module
phys_state_var_mod to 0 for an appearing ocean fraction and a
missing startup field. Replace variable o_sst_nff of module
phys_output_ctrlout_mod by variable o_delta_sst.

Rename variables cpl_delta_temp and cpl_delta_temp_2D of module
cpl_mod to cpl_delta_sst and cpl_delta_sst_2D, clearer. Rename
variable ids_delta_temp of module oasis to ids_delta_sst. Change
infosend(ids_delta_temp)%name to "CODELSST".

File:
1 edited

Legend:

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

    r3740 r3744  
    5555       radsol, snow, agesno, &
    5656       qsurf, evap, fluxsens, fluxlat, flux_u1, flux_v1, &
    57        tsurf_new, dflux_s, dflux_l, sens_prec_liq, sss, s_int, rhoa, sst_nff)
     57       tsurf_new, dflux_s, dflux_l, sens_prec_liq, sss, s_int, rhoa, delta_sst)
    5858
    5959!
     
    9595    real, intent(in):: rhoa(:) ! (knon) density of moist air  (kg / m3)
    9696
    97     REAL, intent(in):: sst_nff(:) ! (knon)
    98     ! SST not used to compute surface fluxes, in K. If
    99     ! activate_ocean_skin == 0 then it is not defined; if
    100     ! activate_ocean_skin == 1 then it is the ocean-air interface
    101     ! temperature; if activate_ocean_skin == 2 then it is the bulk SST.
     97    REAL, intent(in):: delta_sst(:) ! (knon)
     98    ! Ocean-air interface temperature minus bulk SST, in K. Defined
     99    ! only if activate_ocean_skin >= 1.
    102100
    103101! In/Output arguments
     
    217215         fluxsens, precip_rain, precip_snow, evap, tsurf_new, fder_new, alb1, &
    218216         flux_u1, flux_v1, windsp, sens_prec_liq, sens_prec_sol, lat_prec_liq, &
    219          lat_prec_sol, tsurf_in, sst_nff, s_int)
     217         lat_prec_sol, delta_sst, s_int)
    220218
    221219  END SUBROUTINE ocean_cpl_noice
Note: See TracChangeset for help on using the changeset viewer.