Ignore:
Timestamp:
Oct 10, 2016, 10:57:24 AM (8 years ago)
Author:
Ehouarn Millour
Message:

Making the slab work:

  • added a slab_heat_transp_mod module for horizontal diffusion and Ekman transport
  • added storage and output of relevent variables in phyredem, phyetat0, phy_output_ctrlout_mod, phys_output_write_mod
  • moved nslay (number of slab layers) out of dimphy into ocean_slab_mod.

FC

File:
1 edited

Legend:

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

    r2635 r2656  
    3030  USE indice_sol_mod, ONLY: nbsrf, is_oce, is_sic, is_ter, is_lic, epsfra
    3131  USE surface_data, ONLY: type_ocean, version_ocean
    32   USE ocean_slab_mod, ONLY : tslab, seaice, tice, fsic
     32  USE ocean_slab_mod, ONLY : nslay, tslab, seaice, tice, fsic
    3333  USE time_phylmdz_mod, ONLY: annee_ref, day_end, itau_phy, pdtphys
    3434
     
    5858
    5959  INTEGER isoil, nsrf,isw
    60   CHARACTER (len=7) :: str7
     60  CHARACTER (len=2) :: str2
    6161  CHARACTER (len=256) :: nam, lnam
    6262  INTEGER           :: it, iiq
     
    303303  ! Restart variables for Slab ocean
    304304  IF (type_ocean == 'slab') THEN
    305       CALL put_field("tslab", "Slab ocean temperature", tslab)
     305      IF (nslay.EQ.1) THEN
     306        CALL put_field("tslab", "Slab ocean temperature", tslab)
     307      ELSE
     308        DO it=1,nslay
     309          WRITE(str2,'(i2.2)') it
     310          CALL put_field("tslab"//str2, "Slab ocean temperature", tslab(:,it))
     311        END DO
     312      END IF
    306313      IF (version_ocean == 'sicINT') THEN
    307314          CALL put_field("seaice", "Slab seaice (kg/m2)", seaice)
Note: See TracChangeset for help on using the changeset viewer.