Ignore:
Timestamp:
Nov 27, 2025, 6:44:57 PM (5 weeks ago)
Author:
yann meurdesoif
Message:

GPU port of surf_seaice

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/PBLSURF_GPUPORT/libf/phylmd/ocean_forced_mod.F90

    r5868 r5889  
    4343    USE phys_output_var_mod, ONLY : sens_prec_liq_o, sens_prec_sol_o, lat_prec_liq_o, lat_prec_sol_o
    4444    use config_ocean_skin_m, only: activate_ocean_skin
     45    USE calbeta_mod, ONLY : calbeta
     46
    4547#ifdef ISO
    4648    USE infotrac_phy, ONLY: ntiso,niso
     
    310312#endif           
    311313       )
     314!$gpum horizontal knon klon
    312315!
    313316! This subroutine treats the ocean where there is ice.
     
    329332    USE fonte_neige_mod,  ONLY : fonte_neige
    330333    USE indice_sol_mod
     334    USE albsno_mod, ONLY : albsno
     335    USE soil_mod, ONLY : soil
     336    USE calbeta_mod, ONLY : calbeta
    331337    USE phys_output_var_mod, ONLY : sens_prec_liq_o, sens_prec_sol_o, lat_prec_liq_o, lat_prec_sol_o
    332338#ifdef ISO
     
    412418! Local variables
    413419!****************************************************************************************
    414     LOGICAL                     :: check=.FALSE.
     420    LOGICAL,PARAMETER           :: check=.FALSE.
    415421    INTEGER                     :: i, j
    416422    REAL                        :: zfra
     
    470476
    471477! albedo  and radiation parameters
    472     INTEGER, SAVE :: iflag_sic_albedo
     478    INTEGER :: iflag_sic_albedo
    473479! albedo old or NEMO
    474480    REAL :: alb_sno_dry!=rn_alb_sdry !dry snow albedo
     
    492498    ! ice (not snow). Should be visible only, not NIR
    493499    REAL :: pen_ext !=si_pen_ext !extinction length of penetrating shortwave (m-1)
     500    REAl :: lon(knon), lat(knon)   ! for indexation
    494501
    495502! HF from ocean below ice
     
    535542    IF (soil_model) THEN
    536543! update tsoil and calculate soilcap and soilflux
     544       lon(1:knon) = longitude(knindex(1:knon))
     545       lat(1:knon) = latitude(knindex(1:knon))
    537546       CALL soil(dtime, is_sic, knon, snow, tsurf_tmp, qsol, &
    538         & longitude(knindex(1:knon)), latitude(knindex(1:knon)), tsoil,soilcap, soilflux)
     547        & lon, lat, tsoil,soilcap, soilflux)
    539548       cal(1:knon) = RCPD / soilcap(1:knon)
    540549       radsol(1:knon) = radsol(1:knon)  + soilflux(1:knon)
Note: See TracChangeset for help on using the changeset viewer.