Changeset 5669 for LMDZ6/trunk


Ignore:
Timestamp:
May 21, 2025, 2:48:11 PM (2 weeks ago)
Author:
Laurent Fairhead
Message:

Initialisation problem for 1D

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

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/dyn1d/old_lmdz1d.f90

    r5668 r5669  
    2525       ql_ancien, qs_ancien, qbs_ancien, cf_ancien, rvc_ancien, &
    2626       prlw_ancien, prsw_ancien, prbsw_ancien, prw_ancien, &
    27        u10m,v10m,ale_wake,ale_bl_stat, &
    28        hice, tice, bilg_cumul
     27       u10m,v10m,ale_wake,ale_bl_stat
    2928
    3029
     
    220219      real :: run_off_lic_0(1)
    221220      real :: fder(1),snsrf(1,nbsrf),qsurfsrf(1,nbsrf)
     221      real :: hice(1), tice(1), bilg_cumul(1)
    222222      real :: tsoil(1,nsoilmx,nbsrf)
    223223!     real :: agesno(1,nbsrf)
     
    827827  !IF (iflag_seaice == 2) THEN
    828828
    829   found=phyetat0_get(hice,"hice","Ice thickness",0.)
    830   IF (.NOT. found) THEN
    831        PRINT*, "phyetat0: Le champ <hice> est absent"
    832        PRINT*, "Initialisation a hice=1m "
    833        hice(:)=1.0
    834   END IF
    835   found=phyetat0_get(tice,"tice","Sea Ice temperature",0.)
    836   IF (.NOT. found) THEN
    837        PRINT*, "phyetat0: Le champ <tice> est absent"
    838        PRINT*, "Initialisation a tsol_sic"
    839        tice(:)=ftsol(:,is_sic)
    840   END IF
    841   found=phyetat0_get(bilg_cumul,"bilg_cumul","Flux conductivite + transmit sea-ice",0.)
    842   IF (.NOT. found) THEN
    843        PRINT*, "phyetat0: Le champ <bilg_cumul> est absent"
    844        PRINT*, "Initialisation a zero"
    845        bilg_cumul(:)=0.0
    846   END IF
     829     hice(:)=1.0
     830     tice(:)=ftsol(:,is_sic)
     831     bilg_cumul(:)=0.0
     832
    847833
    848834  !END IF
  • LMDZ6/trunk/libf/phylmd/dyn1d/scm.f90

    r5668 r5669  
    2525       ql_ancien, qs_ancien, qbs_ancien, cf_ancien, rvc_ancien, &
    2626       prlw_ancien, prsw_ancien, prbsw_ancien, prw_ancien, &
    27        u10m,v10m,ale_wake,ale_bl_stat, ratqs_inter_, &
    28        hice, tice, bilg_cumul
     27       u10m,v10m,ale_wake,ale_bl_stat, ratqs_inter_
    2928
    3029
     
    183182      real :: run_off_lic_0(1)
    184183      real :: fder(1),snsrf(1,nbsrf),qsurfsrf(1,nbsrf)
     184      real :: hice(1), tice(1), bilg_cumul(1)
    185185      real :: tsoil(1,nsoilmx,nbsrf)
    186186      ! AM
  • LMDZ6/trunk/libf/phylmd/pbl_surface_mod.F90

    r5662 r5669  
    121121!
    122122!****************************************************************************************   
     123
    123124    ALLOCATE(fder(klon), stat=ierr)
    124125    IF (ierr /= 0) CALL abort_physic('pbl_surface_init', 'pb in allocation',1)
     
    126127!GG
    127128    ALLOCATE(hice(klon), stat=ierr)
    128     IF (ierr /= 0) CALL abort_physic('pbl_surface_init', 'pb in allocation',1)
     129    IF (ierr /= 0) CALL abort_physic('pbl_surface_init hice', 'pb in allocation',1)
    129130
    130131    ALLOCATE(tice(klon), stat=ierr)
    131     IF (ierr /= 0) CALL abort_physic('pbl_surface_init', 'pb in allocation',1)
     132    IF (ierr /= 0) CALL abort_physic('pbl_surface_init tice', 'pb in allocation',1)
    132133
    133134    ALLOCATE(bilg_cumul(klon), stat=ierr)
    134     IF (ierr /= 0) CALL abort_physic('pbl_surface_init', 'pb in allocation',1)
     135    IF (ierr /= 0) CALL abort_physic('pbl_surface_init bilg', 'pb in allocation',1)
    135136!GG
    136137
     
    44424443!   DEALLOCATE(qsol, fder, snow, qsurf, evap, rugos, agesno, ftsoil)
    44434444    IF (ALLOCATED(fder)) DEALLOCATE(fder)
     4445    IF (ALLOCATED(hice)) DEALLOCATE(hice)
     4446    IF (ALLOCATED(tice)) DEALLOCATE(tice)
     4447    IF (ALLOCATED(bilg_cumul)) DEALLOCATE(bilg_cumul)
    44444448    IF (ALLOCATED(snow)) DEALLOCATE(snow)
    44454449    IF (ALLOCATED(qsurf)) DEALLOCATE(qsurf)
Note: See TracChangeset for help on using the changeset viewer.