Ignore:
Timestamp:
Jan 25, 2016, 10:47:14 AM (9 years ago)
Author:
ymipsl
Message:

Make LMDZ5 be compliant to generate initiale state and compute in openMP mode suing unstructured grid.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/regr_pr_av_m.F90

    r3819 r3895  
    4646
    4747    integer, intent(in):: ncid ! NetCDF ID of the file
     48
     49!ym   character(len=*), intent(in):: name(:) ! of the NetCDF variables
     50!ym  for strange reason, ifort doens't detect correctly the array size (return 0)
     51!ym   compilator bug , version dependent ?
     52
    4853    character(len=*), intent(in):: name(:) ! of the NetCDF variables
    4954    integer, intent(in):: julien ! jour julien, 1 <= julien <= 360
     
    6671    integer varid, ncerr ! for NetCDF
    6772
    68     real  v1(nbp_lon, nbp_lat, size(press_in_edg) - 1, size(name))
     73    real  v1(nbp_lon, nbp_lat, size(press_in_edg) - 1, size(v3,3))
    6974    ! input fields at day "julien", on the global "dynamics" horizontal grid
    7075    ! First dimension is for longitude.
     
    7479    ! NetCDF variable "name(l)".
    7580
    76     real v2(klon, size(press_in_edg) - 1, size(name))
     81    real v2(klon, size(press_in_edg) - 1, size(v3,3))
    7782    ! fields scattered to the partial "physics" horizontal grid
    7883    ! "v2(i, k, l)" is at longitude "xlon(i)", latitude "xlat(i)",
     
    8590
    8691    call assert(size(v3, 1) == klon, size(v3, 2) == klev, "regr_pr_av v3 klon")
    87     n_var = assert_eq(size(name), size(v3, 3), "regr_pr_av v3 n_var")
     92    PRINT *,'size name',size(name)
     93!ym    n_var = assert_eq(size(name), size(v3, 3), "regr_pr_av v3 n_var")
     94!ym intel bugs compiler : ifort doesn't detect correcte size of nme (return 0)
     95
     96    n_var = size(v3, 3)
     97
    8898    call assert(shape(paprs) == (/klon, klev+1/), "regr_pr_av paprs")
    8999
Note: See TracChangeset for help on using the changeset viewer.