Ignore:
Timestamp:
May 8, 2023, 2:35:08 PM (18 months ago)
Author:
evignon
Message:

fix bug from merge of blowing snow branch

Location:
LMDZ6/trunk/libf/phylmd
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/surf_land_mod.F90

    r4523 r4526  
    137137
    138138IF (ok_bs) THEN
    139 precip_totsnow=precip_snow+precip_bs
     139precip_totsnow(:)=precip_snow(:)+precip_bs(:)
    140140ELSE
    141 precip_totsnow=precip_snow
     141precip_totsnow(:)=precip_snow(:)
    142142ENDIF
    143143!****************************************************************************************
     
    180180            precip_rain, precip_totsnow, lwdown_m, swnet, swdown, &
    181181            pref_tmp, q2m, t2m, &
    182             evap, fluxsens, fluxlat,fluxbs, &             
     182            evap, fluxsens, fluxlat,  &             
    183183            tsol_rad, tsurf_new, alb1_new, alb2_new, &
    184184            emis_new, z0m, z0h, qsurf, &
  • LMDZ6/trunk/libf/phylmd/surf_land_orchidee_mod.F90

    r4523 r4526  
    4747       precip_rain, precip_snow, lwdown, swnet, swdown, &
    4848       ps, q2m, t2m, &
    49        evap, fluxsens, fluxlat, fluxbs, &             
     49       evap, fluxsens, fluxlat, &             
    5050       tsol_rad, tsurf_new, alb1_new, alb2_new, &
    5151       emis_new, z0m_new, z0h_new, qsurf, &
     
    140140! Parametres de sortie
    141141!****************************************************************************************
    142     REAL, DIMENSION(klon), INTENT(OUT)        :: evap, fluxsens, fluxlat, fluxbs, qsurf
     142    REAL, DIMENSION(klon), INTENT(OUT)        :: evap, fluxsens, fluxlat, qsurf
    143143    REAL, DIMENSION(klon), INTENT(OUT)        :: tsol_rad, tsurf_new
    144144    REAL, DIMENSION(klon), INTENT(OUT)        :: alb1_new, alb2_new
     
    633633    fluxlat(1:knon)  = -1. * fluxlat(1:knon)
    634634   
    635 ! temporary until blowing snow flux is calculated in orchidee
    636     fluxbs(:)=0.
    637 
    638635!  evap     = -1. * evap
    639636
  • LMDZ6/trunk/libf/phylmd/surf_landice_mod.F90

    r4523 r4526  
    382382           qsalt=(max(ustar(i)**2-ustart(i)**2,0.))/(RG*hsalt)*esalt
    383383           !ep=qsalt*cdragm(i)*sqrt(u1(i)**2+v1(i)**2)
     384           !Pay attention that this is an explicit formulation for the surface flux
     385           !Formulation fully consistent with the implicit resolution of the turbulent
     386           !mixing scheme remains to be coded
    384387           fluxbs(i)= zeta_bs*p1lay(i)/RD/temp_air(i)*ws1(i)*cdragm(i)*(qbs1(i)-qsalt)
    385388       enddo
     
    401404!****************************************************************************************
    402405    IF (ok_bs) THEN
    403       precip_totsnow=precip_snow+precip_bs
    404       evap_totsnow=evap-fluxbs ! flux bs is positive towards the surface (snow erosion)
     406      precip_totsnow(:)=precip_snow(:)+precip_bs(:)
     407      evap_totsnow(:)=evap(:)-fluxbs(:) ! flux bs is positive towards the surface (snow erosion)
    405408    ELSE
    406       precip_totsnow=precip_snow
    407       evap_totsnow=evap
     409      precip_totsnow(:)=precip_snow(:)
     410      evap_totsnow(:)=evap(:)
    408411    ENDIF
    409412
  • LMDZ6/trunk/libf/phylmd/surf_ocean_mod.F90

    r4523 r4526  
    167167
    168168    IF (ok_bs) THEN
    169        precip_totsnow=precip_snow+precip_bs
     169       precip_totsnow(:)=precip_snow(:)+precip_bs(:)
    170170    ELSE
    171        precip_totsnow=precip_snow
     171       precip_totsnow(:)=precip_snow(:)
    172172    ENDIF
    173173
Note: See TracChangeset for help on using the changeset viewer.