Ignore:
Timestamp:
Jan 30, 2019, 5:55:48 PM (5 years ago)
Author:
lguez
Message:

Introduce variable activate_ocean_skin in module config_ocean_skin_m.

Bug fix in phys_state_var_end: we need to deallocate variables for
lmdz1d (although it is useless for a 3D run).

File:
1 edited

Legend:

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

    r3429 r3458  
    2727!!                                  wx_pbl_fuse, wx_pbl_split
    2828                                  wx_pbl0_fuse, wx_pbl0_split
     29  use config_ocean_skin_m, only: activate_ocean_skin
    2930
    3031  IMPLICIT NONE
     
    963964    rh2m_x(:) = 0. ; qsat2m_x(:) = 0. ; rh2m_w(:) = 0. ; qsat2m_w(:) = 0.
    964965
    965     t_int = nf90_fill_real
    966     s_int = nf90_fill_real
    967     dter = nf90_fill_real
    968     dser = nf90_fill_real
    969     tkt = nf90_fill_real
    970     tks = nf90_fill_real
    971     rf = nf90_fill_real
    972     taur = nf90_fill_real
     966    if (activate_ocean_skin >= 1) then
     967       t_int = nf90_fill_real
     968       s_int = nf90_fill_real
     969       dter = nf90_fill_real
     970       dser = nf90_fill_real
     971       tkt = nf90_fill_real
     972       tks = nf90_fill_real
     973       rf = nf90_fill_real
     974       taur = nf90_fill_real
     975    end if
    973976
    974977! 2b) Initialization of all local variables that will be compressed later
     
    14311434       ENDIF
    14321435
    1433        if (nsrf == is_oce) then
     1436       if (nsrf == is_oce .and. activate_ocean_skin >= 1) then
    14341437          yds_ns(:knon) = ds_ns(ni(:knon))
    14351438          ydt_ns(:knon) = dt_ns(ni(:knon))
     
    25612564       ENDIF
    25622565
    2563        if (nsrf == is_oce) then
     2566       if (nsrf == is_oce .and. activate_ocean_skin >= 1) then
    25642567          dt_ns = nf90_fill_real
    25652568          ds_ns = nf90_fill_real
     
    31883191    USE indice_sol_mod
    31893192    use phys_state_var_mod, only: ds_ns, dt_ns
     3193    use config_ocean_skin_m, only: activate_ocean_skin
    31903194
    31913195    INCLUDE "dimsoil.h"
     
    32743278                      alb_dif(i,k,nsrf) = 0.06
    32753279                   ENDDO
    3276                    ds_ns(i) = 0.
    3277                    dt_ns(i) = 0.
     3280                   if (activate_ocean_skin >= 1) then
     3281                      ds_ns(i) = 0.
     3282                      dt_ns(i) = 0.
     3283                   end if
    32783284                ELSE IF (nsrf.EQ.is_sic) THEN
    32793285                   tsurf(i,nsrf) = 271.35
Note: See TracChangeset for help on using the changeset viewer.