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_climoz_m.F90

    r3819 r3825  
    7373    use netcdf, only: nf90_get_att, nf90_get_var, nf90_noerr, nf90_nowrite
    7474    use assert_m, only: assert
    75     !use comconst_phy_mod, only : pi
    76     !use comgeom2_phy_mod, only : rlatv
    77     use comgeomphy, only: rlatv
     75    use regular_lonlat_mod, only : boundslat_reg, south
    7876    use nrtype, only: pi
    7977    integer, intent(in):: read_climoz ! read ozone climatology
     
    293291            "Found 12 months in ozone climatologies, assuming periodicity..."
    294292       o3_regr_lat(nbp_lat:1:-1, :, 1:12, :) = regr1_step_av(o3_in, &
    295             xs=sin(lat_in_edg), xt=sin((/- pi / 2, rlatv(nbp_lat-1:1:-1), pi / 2/)))
     293            xs=sin(lat_in_edg), xt=sin((/- pi / 2, boundslat_reg(nbp_lat-1:1:-1,south), pi / 2/)))
    296294       ! (invert order of indices in "o3_regr_lat" because "rlatu" is
    297295       ! in descending order)
     
    304302       print *, "Using 14 months in ozone climatologies..."
    305303       o3_regr_lat(nbp_lat:1:-1, :, :, :) = regr1_step_av(o3_in, &
    306             xs=sin(lat_in_edg), xt=sin((/- pi / 2, rlatv(nbp_lat-1:1:-1), pi / 2/)))
     304            xs=sin(lat_in_edg), xt=sin((/- pi / 2, boundslat_reg(nbp_lat-1:1:-1,south), pi / 2/)))
    307305       ! (invert order of indices in "o3_regr_lat" because "rlatu" is
    308306       ! in descending order)
     
    334332         nf95_put_att, nf95_enddef, nf95_copy_att, nf95_put_var
    335333    use netcdf, only: nf90_clobber, nf90_float, nf90_global
    336     !use comconst_phy_mod, only : pi
    337     !use comgeom2_phy_mod, only : rlatu
    338334    use nrtype, only: pi
    339     use comgeomphy, only: rlatu
     335    use regular_lonlat_mod, only : lat_reg
    340336    integer, intent(in):: ncid_in, n_plev
    341337    integer, intent(out):: ncid_out, varid_plev, varid_time
     
    421417
    422418    ! Write one of the coordinate variables:
    423     call nf95_put_var(ncid_out, varid_rlatu, rlatu(nbp_lat:1:-1) / pi * 180.)
     419    call nf95_put_var(ncid_out, varid_rlatu, lat_reg(nbp_lat:1:-1) / pi * 180.)
    424420    ! (convert from rad to degrees and sort in ascending order)
    425421
Note: See TracChangeset for help on using the changeset viewer.