Ignore:
Timestamp:
Oct 14, 2016, 2:57:28 PM (8 years ago)
Author:
Laurent Fairhead
Message:

Merged trunk changes r2640:2664 into testing branch

Location:
LMDZ5/branches/testing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/branches/testing

  • LMDZ5/branches/testing/libf/phylmd/phyetat0.F90

    r2641 r2669  
    33SUBROUTINE phyetat0 (fichnom, clesphy0, tabcntr0)
    44
    5   USE dimphy, only: klon, zmasq, klev, nslay
     5  USE dimphy, only: klon, zmasq, klev
    66  USE iophy, ONLY : init_iophy_new
    77  USE ocean_cpl_mod,    ONLY : ocean_cpl_init
     
    2525  USE carbon_cycle_mod, ONLY : carbon_cycle_tr, carbon_cycle_cpl, co2_send
    2626  USE indice_sol_mod, only: nbsrf, is_ter, epsfra, is_lic, is_oce, is_sic
    27   USE ocean_slab_mod, ONLY: tslab, seaice, tice, ocean_slab_init
     27  USE ocean_slab_mod, ONLY: nslay, tslab, seaice, tice, ocean_slab_init
    2828  USE time_phylmdz_mod, ONLY: init_iteration, pdtphys, itau_phy
    2929
     
    443443  IF ( type_ocean == 'slab' ) THEN
    444444      CALL ocean_slab_init(dtime, pctsrf)
    445       found=phyetat0_get(nslay,tslab,"tslab","tslab",0.)
     445      IF (nslay.EQ.1) THEN
     446        found=phyetat0_get(1,tslab,"tslab01","tslab",0.)
     447        IF (.NOT. found) THEN
     448            found=phyetat0_get(1,tslab,"tslab","tslab",0.)
     449        END IF
     450      ELSE
     451          DO i=1,nslay
     452            WRITE(str2,'(i2.2)') i
     453            found=phyetat0_get(1,tslab(:,i),"tslab"//str2,"tslab",0.) 
     454          END DO
     455      END IF
    446456      IF (.NOT. found) THEN
    447457          PRINT*, "phyetat0: Le champ <tslab> est absent"
     
    453463
    454464      ! Sea ice variables
    455       found=phyetat0_get(1,tice,"slab_tice","slab_tice",0.)
    456465      IF (version_ocean == 'sicINT') THEN
     466          found=phyetat0_get(1,tice,"slab_tice","slab_tice",0.)
    457467          IF (.NOT. found) THEN
    458468              PRINT*, "phyetat0: Le champ <tice> est absent"
     
    460470                  tice(:)=ftsol(:,is_sic)
    461471          END IF
     472          found=phyetat0_get(1,seaice,"seaice","seaice",0.)
    462473          IF (.NOT. found) THEN
    463474              PRINT*, "phyetat0: Le champ <seaice> est absent"
Note: See TracChangeset for help on using the changeset viewer.