Ignore:
Timestamp:
Jun 16, 2014, 4:33:38 PM (10 years ago)
Author:
Ehouarn Millour
Message:

Preparatory stuff to fix and improve the slab ocean model.
FC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/phyetat0.F90

    r2054 r2057  
    33SUBROUTINE phyetat0 (fichnom, clesphy0, tabcntr0)
    44
    5   USE dimphy, only: klon, zmasq, klev
     5  USE dimphy, only: klon, zmasq, klev, nslay
    66  USE iophy, ONLY : init_iophy_new
    77  USE ocean_cpl_mod,    ONLY : ocean_cpl_init
     
    2121  USE carbon_cycle_mod, ONLY : carbon_cycle_tr, carbon_cycle_cpl, co2_send
    2222  USE indice_sol_mod, only: nbsrf, is_ter, epsfra, is_lic, is_oce, is_sic
     23  USE ocean_slab_mod, ONLY: tslab, ocean_slab_init
    2324
    2425  IMPLICIT none
     
    4041
    4142  REAL tsoil(klon, nsoilmx, nbsrf)
    42   REAL tslab(klon), seaice(klon)
    4343  REAL qsurf(klon, nbsrf)
    4444  REAL qsol(klon)
     
    10451045  end if
    10461046
     1047  ! Initialize Slab variables
     1048  IF ( type_ocean == 'slab' ) THEN
     1049      ALLOCATE(tslab(klon,nslay), stat=ierr)
     1050      IF (ierr /= 0) CALL abort_gcm &
     1051         ('phyetat0', 'pb allocation tslab', 1)
     1052      CALL get_field("tslab", tslab, found)
     1053      IF (.NOT. found) THEN
     1054          PRINT*, "phyetat0: Le champ <tslab> est absent"
     1055          PRINT*, "Initialisation a tsol_oce"
     1056          DO i=1,nslay
     1057              tslab(:,i)=ftsol(:,is_oce)
     1058          END DO
     1059      END IF
     1060      print*, "calling slab_init"
     1061      CALL ocean_slab_init(dtime, pctsrf)
     1062  END IF ! Slab       
     1063
    10471064  ! on ferme le fichier
    10481065  CALL close_startphy
Note: See TracChangeset for help on using the changeset viewer.