Ignore:
Timestamp:
May 6, 2015, 12:14:12 PM (10 years ago)
Author:
ymipsl
Message:

Reorganize geometry and grid modules. Prepare physics for unstructutured grid support. Simplify initialization of physics from dynamic.
Compiled only with dynd3dmem, but not tested for moment.

YM

File:
1 edited

Legend:

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

    r3819 r3825  
    4949    !use comconst_phy_mod, only : pi
    5050    use nrtype, only: pi
    51     use comgeomphy, only: rlatv
     51    use regular_lonlat_mod, only: boundslat_reg, south
    5252    ! Variables local to the procedure:
    5353
     
    211211       ! equivalent to weighting by cosine of latitude:
    212212       v_regr_lat(nbp_lat:1:-1, :, 1:12) = regr1_step_av(o3_par_in, &
    213             xs=sin(lat_in_edg), xt=sin((/- pi / 2, rlatv(nbp_lat-1:1:-1), pi / 2/)))
     213            xs=sin(lat_in_edg), xt=sin((/- pi / 2, boundslat_reg(nbp_lat-1:1:-1,south), pi / 2/)))
    214214       ! (invert order of indices in "v_regr_lat" because "rlatu" is
    215215       ! in descending order)
     
    251251    !use comconst_phy_mod, only : pi
    252252    use nrtype, only: pi
    253     use comgeomphy, only: rlatu
    254 
     253    use regular_lonlat_mod, only : lat_reg
    255254    integer, intent(in):: ncid_in, varid_in(:), n_plev
    256255    character(len=*), intent(in):: name_out(:) ! of NetCDF variables
     
    326325
    327326    ! Write one of the coordinate variables:
    328     call nf95_put_var(ncid_out, varid_rlatu, rlatu(nbp_lat:1:-1) / pi * 180.)
     327    call nf95_put_var(ncid_out, varid_rlatu, lat_reg(nbp_lat:1:-1) / pi * 180.)
    329328    ! (convert from rad to degrees and sort in ascending order)
    330329
Note: See TracChangeset for help on using the changeset viewer.