Ignore:
Timestamp:
Mar 20, 2014, 10:57:19 AM (10 years ago)
Author:
Laurent Fairhead
Message:

Merged trunk changes r1920:1997 into testing branch

Location:
LMDZ5/branches/testing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/branches/testing

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

    r1910 r1999  
    33SUBROUTINE phyetat0 (fichnom, clesphy0, tabcntr0)
    44
    5   USE dimphy
    6   USE mod_grid_phy_lmdz
    7   USE mod_phys_lmdz_para
    8   USE iophy
     5  USE dimphy, only: klon, zmasq, klev
     6  USE iophy, ONLY : init_iophy_new
    97  USE ocean_cpl_mod,    ONLY : ocean_cpl_init
    108  USE fonte_neige_mod,  ONLY : fonte_neige_init
    119  USE pbl_surface_mod,  ONLY : pbl_surface_init
    1210  USE surface_data,     ONLY : type_ocean
    13   USE phys_state_var_mod
    14   USE iostart
    15   USE write_field_phy
    16   USE infotrac
     11  USE phys_state_var_mod, ONLY : ancien_ok, clwcon, detr_therm, dtime, &
     12       du_gwd_rando, dv_gwd_rando, entr_therm, f0, falb1, falb2, fm_therm, &
     13       ftsol, pbl_tke, pctsrf, q_ancien, radpas, radsol, rain_fall, ratqs, &
     14       rlat, rlon, rnebcon, rugoro, sig1, snow_fall, solaire_etat0, sollw, &
     15       solsw, t_ancien, u_ancien, v_ancien, w01, wake_cstar, wake_deltaq, &
     16       wake_deltat, wake_fip, wake_pe, wake_s, zgam, zmax0, zmea, zpic, zsig, &
     17       zstd, zthe, zval
     18  USE iostart, ONLY : close_startphy, get_field, get_var, open_startphy
     19  USE infotrac, only: nbtr, type_trac, tname, niadv
    1720  USE traclmdz_mod,    ONLY : traclmdz_from_restart
    1821  USE carbon_cycle_mod, ONLY : carbon_cycle_tr, carbon_cycle_cpl, co2_send
    19   USE indice_sol_mod
     22  USE indice_sol_mod, only: nbsrf, is_ter, epsfra, is_lic, is_oce, is_sic
    2023
    2124  IMPLICIT none
     
    206209        IF (nsrf.GT.99) THEN
    207210           PRINT*, "Trop de sous-mailles"
    208            CALL abort
     211           call abort_gcm("phyetat0", "", 1)
    209212        ENDIF
    210213        WRITE(str2, '(i2.2)') nsrf
     
    242245        IF (isoil.GT.99 .AND. nsrf.GT.99) THEN
    243246           PRINT*, "Trop de couches ou sous-mailles"
    244            CALL abort
     247           call abort_gcm("phyetat0", "", 1)
    245248        ENDIF
    246249        WRITE(str7, '(i2.2, "srf", i2.2)') isoil, nsrf
     
    266269        IF (nsrf.GT.99) THEN
    267270           PRINT*, "Trop de sous-mailles"
    268            CALL abort
     271           call abort_gcm("phyetat0", "", 1)
    269272        ENDIF
    270273        WRITE(str2, '(i2.2)') nsrf
     
    321324        IF (nsrf.GT.99) THEN
    322325           PRINT*, "Trop de sous-mailles"
    323            CALL abort
     326           call abort_gcm("phyetat0", "", 1)
    324327        ENDIF
    325328        WRITE(str2, '(i2.2)') nsrf
     
    359362        IF (nsrf.GT.99) THEN
    360363           PRINT*, "Trop de sous-mailles"
    361            CALL abort
     364           call abort_gcm("phyetat0", "", 1)
    362365        ENDIF
    363366        WRITE(str2, '(i2.2)') nsrf
     
    425428        IF (nsrf.GT.99) THEN
    426429           PRINT*, "Trop de sous-mailles"
    427            CALL abort
     430           call abort_gcm("phyetat0", "", 1)
    428431        ENDIF
    429432        WRITE(str2, '(i2.2)') nsrf
     
    544547        IF (nsrf.GT.99) THEN
    545548           PRINT*, "Trop de sous-mailles"
    546            CALL abort
     549           call abort_gcm("phyetat0", "", 1)
    547550        ENDIF
    548551        WRITE(str2, '(i2.2)') nsrf
     
    582585        IF (nsrf.GT.99) THEN
    583586           PRINT*, "Trop de sous-mailles"
    584            CALL abort
     587           call abort_gcm("phyetat0", "", 1)
    585588        ENDIF
    586589        WRITE(str2, '(i2.2)') nsrf
     
    775778        IF (nsrf.GT.99) THEN
    776779           PRINT*, "Trop de sous-mailles"
    777            CALL abort
     780           call abort_gcm("phyetat0", "", 1)
    778781        ENDIF
    779782        WRITE(str2, '(i2.2)') nsrf
     
    10281031  END IF
    10291032
     1033  if (ok_gwd_rando) then
     1034     call get_field("du_gwd_rando", du_gwd_rando, found)
     1035     if (.not. found) then
     1036        print *, "du_gwd_rando not found, setting it to 0."
     1037        du_gwd_rando = 0.
     1038     end if
     1039
     1040     call get_field("dv_gwd_rando", dv_gwd_rando, found)
     1041     if (.not. found) then
     1042        print *, "dv_gwd_rando not found, setting it to 0."
     1043        dv_gwd_rando = 0.
     1044     end if
     1045  end if
     1046
    10301047  ! on ferme le fichier
    10311048  CALL close_startphy
Note: See TracChangeset for help on using the changeset viewer.