Ignore:
Timestamp:
Jul 23, 2024, 3:29:36 PM (8 weeks ago)
Author:
abarral
Message:

Handle CPP_INLANDSIS in lmdz_cppkeys_wrapper.F90
Remove obsolete key wrgrads_thermcell, _ADV_HALO, _ADV_HALLO, isminmax
Remove redundant uses of CPPKEY_INCA (thanks acozic)
Remove obsolete misc/write_field.F90
Remove unused ioipsl_* wrappers
Remove calls to WriteField_u with wrong signature
Convert .F -> .[fF]90
(lint) uppercase fortran operators
[note: 1d and iso still broken - working on it]

File:
1 edited

Legend:

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

    r5099 r5103  
    5050REAL, PARAMETER                        :: pliml=7500.
    5151REAL, PARAMETER                        :: gamma=-0.002
    52 LOGICAL, PARAMETER                     :: dofill=.true.
     52LOGICAL, PARAMETER                     :: dofill=.TRUE.
    5353REAL,DIMENSION(klon)                   :: tp
    5454REAL,DIMENSION(klev)                   :: t, p
     
    6666  psrf=pplay(i,1)
    6767  zsrf=pphis(i)/RG           !--altitude de la surface
    68   call twmo(missing_val, klev, t, p, psrf, zsrf, plimu, pliml, gamma, ptrp, ttrp, ztrp)
     68  CALL twmo(missing_val, klev, t, p, psrf, zsrf, plimu, pliml, gamma, ptrp, ttrp, ztrp)
    6969  tp(i)=ptrp
    7070  p_tropopause(i)=ptrp
     
    107107!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    108108
    109 subroutine twmo(missing_val, level, t, p, ps, zs, plimu, pliml, gamma, ptrp, ttrp, ztrp)
     109SUBROUTINE twmo(missing_val, level, t, p, ps, zs, plimu, pliml, gamma, ptrp, ttrp, ztrp)
    110110
    111111! reference: Reichler, T., M. Dameris, and R. Sausen (GRL, 10.1029/2003GL018240, 2003)
     
    137137faktor = -RG/RD
    138138
    139 do j=level,2,-1
     139DO j=level,2,-1
    140140
    141141   ! dt/dz
     
    206206
    207207jj = LEVEL                                       ! bottom
    208 do while ((P(jj)>PS) .or. (T(jj)<100))     ! T must be valid too
     208DO while ((P(jj)>PS) .or. (T(jj)<100))     ! T must be valid too
    209209  jj=jj-1
    210 enddo
     210END DO
    211211
    212212DLNP = log(PS/P(jj))                             ! from surface pressure
     
    214214TDLNP = TM*DLNP
    215215
    216 do while ( (JJ>=2) .and. (PTRP<P(jj-1)) )
     216DO while ( (JJ>=2) .and. (PTRP<P(jj-1)) )
    217217  DLNP = log(P(jj)/P(jj-1))
    218218  TM = 0.5 * (T(jj) + T(jj-1))
    219219  TDLNP = TDLNP + TM*DLNP
    220220  JJ=JJ-1
    221 enddo
     221END DO
    222222
    223223DLNP = log(P(jj)/PTRP)                           ! up to tropopause pressure
     
    228228
    229229!!if (ZTRP .lt. 0) then
    230 !!  print*,'ZTRP=',ZTRP
    231 !!  print*,'PS=',PS
    232 !!  print*,'P=',P
    233 !!  print*,'T=',T
    234 !!  print*,'ZS=',ZS
     230!!  PRINT*,'ZTRP=',ZTRP
     231!!  PRINT*,'PS=',PS
     232!!  PRINT*,'P=',P
     233!!  PRINT*,'T=',T
     234!!  PRINT*,'ZS=',ZS
    235235!!  stop
    236236!!endif
     
    246246    b0 = b
    247247
    248 enddo
     248END DO
    249249
    250250! no tropopouse found
    251251return
    252 end subroutine twmo
     252END SUBROUTINE twmo
Note: See TracChangeset for help on using the changeset viewer.