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

Location:
LMDZ5/trunk/libf/dynlonlat_phylonlat/phylmd
Files:
3 edited

Legend:

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

    r2336 r2399  
    3939  USE conf_dat_m,         ONLY: conf_dat2d
    4040  USE phys_state_var_mod, ONLY: zmea, zstd, zsig, zgam, zthe, zpic, zval, z0m, &
    41     rlon, solsw, radsol, t_ancien, wake_deltat, wake_s,  rain_fall, qsol, z0h, &
    42     rlat, sollw, rugoro, q_ancien, wake_deltaq, wake_pe, snow_fall, ratqs,w01, &
     41          solsw, radsol, t_ancien, wake_deltat, wake_s,  rain_fall, qsol, z0h, &
     42          sollw, rugoro, q_ancien, wake_deltaq, wake_pe, snow_fall, ratqs,w01, &
    4343    sig1, ftsol, clwcon, fm_therm, wake_Cstar,  pctsrf,  entr_therm,radpas, f0,&
    4444    zmax0,fevap, rnebcon,falb_dir, wake_fip,    agesno,  detr_therm, pbl_tke,  &
  • LMDZ5/trunk/libf/dynlonlat_phylonlat/phylmd/init_ssrf_m.F90

    r2342 r2399  
    33!*******************************************************************************
    44
    5   USE indice_sol_mod
     5  USE indice_sol_mod, ONLY: is_ter, is_oce, is_oce, is_lic, epsfra
    66  USE dimphy,             ONLY: klon, zmasq
    7   USE phys_state_var_mod, ONLY: pctsrf, rlon, rlat
     7  USE phys_state_var_mod, ONLY: pctsrf
     8  USE geometry_mod, ONLY : longitude_deg, latitude_deg
    89  USE grid_atob_m,        ONLY: grille_m
    910  USE ioipsl,             ONLY: flininfo, flinopen, flinget, flinclo
     
    4546
    4647!--- Physical grid points coordinates
    47   DO j=2,jjm; rlat((j-2)*iim+2:(j-1)*iim+1)=rlatu(j);    END DO
    48   DO j=2,jjm; rlon((j-2)*iim+2:(j-1)*iim+1)=rlonv(1:im); END DO
    49   rlat(1) = pi/2.; rlat(klon) = - pi/2.; rlat(:)=rlat(:)/deg2rad
    50   rlon(1) = 0.0;   rlon(klon) = 0.0;     rlon(:)=rlon(:)/deg2rad
     48  DO j=2,jjm; latitude_deg((j-2)*iim+2:(j-1)*iim+1)=rlatu(j);    END DO
     49  DO j=2,jjm; longitude_deg((j-2)*iim+2:(j-1)*iim+1)=rlonv(1:im); END DO
     50  latitude_deg(1) = pi/2.; latitude_deg(klon) = - pi/2.
     51  latitude_deg(:)=latitude_deg(:)/deg2rad
     52  longitude_deg(1) = 0.0;   longitude_deg(klon) = 0.0;
     53  longitude_deg(:)=longitude_deg(:)/deg2rad
    5154
    5255! Compute ground geopotential, sub-cells quantities and possibly the mask.
  • 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.