Ignore:
Timestamp:
Nov 20, 2015, 5:23:28 PM (9 years ago)
Author:
Ehouarn Millour
Message:

Follow-up from commit 2395: get rid of rlon and rlat, longitude_deg and latitude_deg (from module geometry_mod) should be used instead. Longitudes and latitudes are no longer loaded from startphy.nc but inherited from dynamics (and compatibility with values in startphy.nc is checked). This will change bench results because of roundoffs differences between the two.
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/dynlonlat_phylonlat/phylmd/limit_netcdf.F90

    r2342 r2399  
    2222  USE conf_dat_m,         ONLY: conf_dat2d, conf_dat3d
    2323  USE dimphy,             ONLY: klon, zmasq
    24   USE phys_state_var_mod, ONLY: pctsrf, rlon, rlat
    25   USE control_mod
     24  USE geometry_mod, ONLY: longitude_deg, latitude_deg
     25  USE phys_state_var_mod, ONLY: pctsrf
     26  USE control_mod, ONLY: anneeref
    2627  USE init_ssrf_m,        ONLY: start_init_subsurf
    2728
     
    113114    CALL start_init_orog0(rlonv,rlatu,phis,masque)
    114115    CALL gr_dyn_fi(1,iip1,jjp1,klon,masque,zmasq)          !--- To physical grid
    115     ALLOCATE(rlon(klon),rlat(klon),pctsrf(klon,nbsrf))
     116    ALLOCATE(pctsrf(klon,nbsrf))
    116117    CALL start_init_subsurf(.FALSE.)
    117118  END IF
     
    267268  CALL ncerr(NF90_PUT_VAR(nid,id_ALB ,phy_alb(:,:),[1,1],[klon,ndays]),fnam)
    268269  CALL ncerr(NF90_PUT_VAR(nid,id_RUG ,phy_rug(:,:),[1,1],[klon,ndays]),fnam)
    269   call nf95_put_var(nid, varid_longitude, rlon)
    270   call nf95_put_var(nid, varid_latitude, rlat)
     270  call nf95_put_var(nid, varid_longitude, longitude_deg)
     271  call nf95_put_var(nid, varid_latitude, latitude_deg)
    271272
    272273  CALL ncerr(NF90_CLOSE(nid),fnam)
Note: See TracChangeset for help on using the changeset viewer.