Ignore:
Timestamp:
Jul 28, 2025, 7:23:15 PM (7 days ago)
Author:
aborella
Message:

Merge with trunk r5789

Location:
LMDZ6/branches/contrails
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/contrails

  • LMDZ6/branches/contrails/libf/phylmd/dyn1d/scm.f90

    r5717 r5791  
    55   USE clesphys_mod_h
    66   USE ioipsl, only: ju2ymds, ymds2ju, ioconf_calendar,getin
     7   USE phyetat0_get_mod, ONLY : phyetat0_get, phyetat0_srf
    78   USE phys_state_var_mod, ONLY : phys_state_var_init, phys_state_var_end, &
    89       clwcon, detr_therm, &
     
    182183      real :: run_off_lic_0(1)
    183184      real :: fder(1),snsrf(1,nbsrf),qsurfsrf(1,nbsrf)
     185      real :: hice(1), tice(1), bilg_cumul(1)
    184186      real :: tsoil(1,nsoilmx,nbsrf)
    185187      ! AM
     
    232234      CHARACTER(len=80) :: abort_message
    233235      CHARACTER(len=20) :: modname = 'scm'
     236      LOGICAL :: found
    234237
    235238      print*,'VOUS ENTREZ DANS LE 1D FORMAT STANDARD'
     
    614617
    615618!-----------------------------------------------------------------------
    616         call pbl_surface_init(fder, snsrf, qsurfsrf, tsoil)
     619  !GG
     620  ! Sea ice
     621  !IF (iflag_seaice == 2) THEN
     622
     623  found=phyetat0_get(hice,"hice","Ice thickness",0.)
     624  IF (.NOT. found) THEN
     625       PRINT*, "phyetat0: Le champ <hice> est absent"
     626       PRINT*, "Initialisation a hice=1m "
     627       hice(:)=1.0
     628  END IF
     629  found=phyetat0_get(tice,"tice","Sea Ice temperature",0.)
     630  IF (.NOT. found) THEN
     631       PRINT*, "phyetat0: Le champ <tice> est absent"
     632       PRINT*, "Initialisation a tsol_sic"
     633       tice(:)=ftsol(:,is_sic)
     634  END IF
     635  found=phyetat0_get(bilg_cumul,"bilg_cumul","Flux conductivite + transmit sea-ice",0.)
     636  IF (.NOT. found) THEN
     637       PRINT*, "phyetat0: Le champ <bilg_cumul> est absent"
     638       PRINT*, "Initialisation a zero"
     639       bilg_cumul(:)=0.0
     640  END IF
     641
     642  !END IF
     643  !GG
     644        call pbl_surface_init(fder, snsrf, qsurfsrf, tsoil, hice, tice, bilg_cumul)
    617645
    618646!------------------ prepare limit conditions for limit.nc -----------------
Note: See TracChangeset for help on using the changeset viewer.