Ignore:
Timestamp:
Jul 24, 2024, 4:23:34 PM (3 months ago)
Author:
abarral
Message:

rename modules properly lmdz_*
move some unused files to obsolete/
(lint) uppercase fortran keywords

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev/libf/dynphy_lonlat/phylmd/test_disvert_m.F90

    r5116 r5117  
    1313    ! the surface pressure, which sample possible values on Earth.
    1414
    15     use exner_hyb_m, ONLY: exner_hyb
    16     use lmdz_vertical_layers, ONLY: ap,bp,preff
    17     use comconst_mod, ONLY: kappa, cpp
     15    USE exner_hyb_m, ONLY: exner_hyb
     16    USE lmdz_vertical_layers, ONLY: ap,bp,preff
     17    USE comconst_mod, ONLY: kappa, cpp
    1818    USE lmdz_abort_physic, ONLY: abort_physic
    1919
     
    2222
    2323    ! Local:
    24     integer l, i
    25     integer, parameter:: ngrid = 7
    26     real p(ngrid, llm + 1) ! pressure at half-level, in Pa
    27     real pks(ngrid) ! exner function at the surface, in J K-1 kg-1
    28     real pk(ngrid, llm) ! exner function at full level, in J K-1 kg-1
    29     real ps(ngrid) ! surface pressure, in Pa
    30     real p_lay(ngrid, llm) ! pressure at full level, in Pa
    31     real delta_ps ! in Pa
     24    INTEGER l, i
     25    INTEGER, parameter:: ngrid = 7
     26    REAL p(ngrid, llm + 1) ! pressure at half-level, in Pa
     27    REAL pks(ngrid) ! exner function at the surface, in J K-1 kg-1
     28    REAL pk(ngrid, llm) ! exner function at full level, in J K-1 kg-1
     29    REAL ps(ngrid) ! surface pressure, in Pa
     30    REAL p_lay(ngrid, llm) ! pressure at full level, in Pa
     31    REAL delta_ps ! in Pa
    3232
    3333    !---------------------
     
    4242
    4343    ! Are pressure values in the right order?
    44     if (any(p(:, :llm) <= p_lay .or. p_lay <= p(:, 2:))) THEN
     44    IF (any(p(:, :llm) <= p_lay .OR. p_lay <= p(:, 2:))) THEN
    4545       ! List details and stop:
    4646       do l = 1, llm
    4747          do i = 1, ngrid
    48              if (p(i, l) <= p_lay(i, l)) THEN
     48             IF (p(i, l) <= p_lay(i, l)) THEN
    4949                print 1000, "ps = ", ps(i) / 100., "hPa, p(level ",  l, &
    5050                     ") = ", p(i, l) / 100., " hPa <= p(layer ", l, ") = ", &
    5151                     p_lay(i, l) / 100., " hPa"
    5252             end if
    53              if (p_lay(i, l) <= p(i, l + 1)) THEN
     53             IF (p_lay(i, l) <= p(i, l + 1)) THEN
    5454                print 1000, "ps = ", ps(i) / 100., "hPa, p(layer ", l, ") = ", &
    5555                     p_lay(i, l) / 100., " hPa <= p(level ", l + 1, ") = ", &
Note: See TracChangeset for help on using the changeset viewer.