Ignore:
Timestamp:
Apr 22, 2015, 6:28:50 PM (10 years ago)
Author:
ymipsl
Message:

Removed all iim et jjm depedency. Replaced by nbp_lon and nbp_lat.
Supress gr_fi_ecrit, replaced by grid1dTo2d_glo

YM

File:
1 edited

Legend:

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

    r3809 r3819  
    3939    ! It allocates module variables.
    4040
    41     use dimphy, only: klon
     41    use dimphy, only: klon, klev
    4242
    4343    ! Variables local to the procedure:
    44     include "dimensions.h"
    4544
    4645    !---------------------------------------
     
    4948    print *, "Call sequence information: alloc_coefoz"
    5049    !$omp end master
    51     allocate(c_Mob(klon, llm), a2(klon, llm), a4_mass(klon, llm))
    52     allocate(a6_mass(klon, llm), r_het_interm(klon, llm))
     50    allocate(c_Mob(klon, klev), a2(klon, klev), a4_mass(klon, klev))
     51    allocate(a6_mass(klon, klev), r_het_interm(klon, klev))
    5352
    5453  end subroutine alloc_coefoz
     
    7473    use netcdf, only: nf90_nowrite
    7574    use assert_m, only: assert
    76     use dimphy, only: klon
     75    use dimphy, only: klon, klev
    7776    use mod_phys_lmdz_mpi_data, only: is_mpi_root
    7877    use regr_pr_av_m, only: regr_pr_av
     
    8584    ! (latitude on the partial "physics" grid, in degrees)
    8685
    87     real, intent(in):: paprs(:, :) ! (klon, llm + 1)
     86    real, intent(in):: paprs(:, :) ! (klon, klev + 1)
    8887    ! (pression pour chaque inter-couche, en Pa)
    8988
    90     real, intent(in):: pplay(:, :) ! (klon, llm)
     89    real, intent(in):: pplay(:, :) ! (klon, klev)
    9190    ! (pression pour le mileu de chaque couche, en Pa)
    9291
    9392    ! Variables local to the procedure:
    9493
    95     include "dimensions.h"
    9694    integer ncid ! for NetCDF
    9795
    98     real coefoz(klon, llm, 7)
     96    real coefoz(klon, klev, 7)
    9997    ! (temporary storage for 7 ozone coefficients)
    10098    ! (On the partial "physics" grid.
     
    102100    ! middle of layer "k".)
    103101
    104     real a6(klon, llm)
     102    real a6(klon, klev)
    105103    ! (derivative of "P_net_Mob" with respect to column-density of ozone
    106104    ! above, in cm2 s-1)
     
    121119    call assert((/size(rlat), size(paprs, 1), size(pplay, 1)/) == klon, &
    122120         "regr_pr_comb_coefoz klon")
    123     call assert((/size(paprs, 2) - 1, size(pplay, 2)/) == llm, &
    124          "regr_pr_comb_coefoz llm")
     121    call assert((/size(paprs, 2) - 1, size(pplay, 2)/) == klev, &
     122         "regr_pr_comb_coefoz klev")
    125123
    126124    !$omp master
     
    150148    r_het_interm = coefoz(:, :, 7)
    151149    ! Heterogeneous chemistry is only at high latitudes:
    152     forall (k = 1: llm)
     150    forall (k = 1: klev)
    153151       where (abs(rlat) <= 45.) r_het_interm(:, k) = 0.
    154152    end forall
Note: See TracChangeset for help on using the changeset viewer.