Ignore:
Timestamp:
Jan 11, 2021, 11:24:08 PM (3 years ago)
Author:
lguez
Message:

Sync latest trunk changes to Ocean_skin

Location:
LMDZ6/branches/Ocean_skin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Ocean_skin

  • LMDZ6/branches/Ocean_skin/libf/phylmd/ocean_forced_mod.F90

    r3687 r3798  
    3939    INCLUDE "YOMCST.h"
    4040    INCLUDE "clesphys.h"
    41 
     41    INCLUDE "flux_arp.h"
    4242
    4343! Input arguments
     
    9696!!jyg    if (knon.eq.1) then ! single-column model
    9797    if (klon_glo.eq.1) then ! single-column model
    98       CALL read_tsurf1d(knon,tsurf_lim) ! new
     98      ! EV: now surface Tin flux_arp.h
     99      !CALL read_tsurf1d(knon,tsurf_lim) ! new
     100       DO i = 1, knon
     101        tsurf_lim(i) = tg
     102       ENDDO
     103
    99104    else ! GCM
    100105      CALL limit_read_sst(knon,knindex,tsurf_lim)
     
    108113!****************************************************************************************
    109114! Set some variables for calcul_fluxs
    110     cal = 0.
    111     beta = 1.
    112     dif_grnd = 0.
     115    !cal = 0.
     116    !beta = 1.
     117    !dif_grnd = 0.
     118   
     119   
     120    ! EV: use calbeta to calculate beta
     121    ! Need to initialize qsurf for calbeta but it is not modified by this routine
     122    qsurf(:)=0.
     123    CALL calbeta(dtime, is_oce, knon, snow, qsurf, beta, cal, dif_grnd)
     124
     125
    113126    alb_neig(:) = 0.
    114127    agesno(:) = 0.
     
    174187    USE phys_output_var_mod, ONLY : sens_prec_liq_o, sens_prec_sol_o, lat_prec_liq_o, lat_prec_sol_o
    175188
    176 !    INCLUDE "indicesol.h"
     189!   INCLUDE "indicesol.h"
    177190    INCLUDE "dimsoil.h"
    178191    INCLUDE "YOMCST.h"
    179192    INCLUDE "clesphys.h"
     193    INCLUDE "flux_arp.h"
    180194
    181195! Input arguments
     
    240254    tsurf_tmp(:) = tsurf_in(:)
    241255
    242 ! calculate the parameters cal, beta, capsol and dif_grnd
     256! calculate the parameters cal, beta, capsol and dif_grnd and then recalculate cal
    243257    CALL calbeta(dtime, is_sic, knon, snow, qsol, beta, capsol, dif_grnd)
    244258
     
    256270    ENDIF
    257271
    258     beta = 1.0
     272!    beta = 1.0
    259273    lat_prec_liq = 0.; lat_prec_sol = 0.
    260274
     
    314328! 1D case
    315329!************************************************************************
    316   SUBROUTINE read_tsurf1d(knon,sst_out)
    317 
     330!  SUBROUTINE read_tsurf1d(knon,sst_out)
     331!
    318332! This subroutine specifies the surface temperature to be used in 1D simulations
    319 
    320       USE dimphy, ONLY : klon
    321 
    322       INTEGER, INTENT(IN)                  :: knon     ! nomber of points on compressed grid
    323       REAL, DIMENSION(klon), INTENT(OUT)   :: sst_out  ! tsurf used to force the single-column model
    324 
    325        INTEGER :: i
     333!
     334!      USE dimphy, ONLY : klon
     335!
     336!      INTEGER, INTENT(IN)                  :: knon     ! nomber of points on compressed grid
     337!      REAL, DIMENSION(klon), INTENT(OUT)   :: sst_out  ! tsurf used to force the single-column model
     338!
     339!       INTEGER :: i
    326340! COMMON defined in lmdz1d.F:
    327        real ts_cur
    328        common /sst_forcing/ts_cur
    329 
    330        DO i = 1, knon
    331         sst_out(i) = ts_cur
    332        ENDDO
    333 
    334       END SUBROUTINE read_tsurf1d
    335 
     341!       real ts_cur
     342!       common /sst_forcing/ts_cur
     343!
     344!       DO i = 1, knon
     345!        sst_out(i) = ts_cur
     346!       ENDDO
     347!
     348!      END SUBROUTINE read_tsurf1d
     349!
    336350!
    337351!************************************************************************
    338 !
    339352END MODULE ocean_forced_mod
    340353
Note: See TracChangeset for help on using the changeset viewer.