Ignore:
Timestamp:
Jul 24, 2024, 2:54:37 PM (2 months ago)
Author:
abarral
Message:

rename modules properly lmdz_*
move ismin, ismax, minmax into new lmdz_libmath.f90
(lint) uppercase fortran keywords

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev/libf/dyn3d_common/disvert.F90

    r5113 r5116  
    33SUBROUTINE disvert()
    44
    5   use ioipsl, only: getin
    6   use new_unit_m, only: new_unit
    7   use lmdz_assert, only: assert
     5  use ioipsl, ONLY: getin
     6  use new_unit_m, ONLY: new_unit
     7  use lmdz_assert, ONLY: assert
    88  USE comvert_mod, ONLY: ap, bp, aps, bps, nivsigs, nivsig, dpres, presnivs, &
    99                         pseudoalt, pa, preff, scaleheight, presinter
     
    4747  REAL alpha, beta, deltaz
    4848  REAL x
    49   character(len=*),parameter :: modname="disvert"
    50 
    51   character(len=24):: vert_sampling
     49  CHARACTER(LEN=*),parameter :: modname="disvert"
     50
     51  CHARACTER(LEN=24):: vert_sampling
    5252  ! (allowed values are "param", "tropo", "strato" and "read")
    5353
     
    6262  CALL getin('vert_sampling', vert_sampling)
    6363  WRITE(lunout,*) TRIM(modname)//' vert_sampling = ' // vert_sampling
    64   if (llm==39 .and. vert_sampling=="strato") then
     64  if (llm==39 .and. vert_sampling=="strato") THEN
    6565     dsigmin=0.3 ! Vieille option par défaut pour CMIP5
    6666  else
     
    8282     CLOSE(99)
    8383     alpha=deltaz/(llm*scaleheight)
    84      write(lunout, *)trim(modname),':scaleheight, alpha, k0, k1, beta', &
     84     WRITE(lunout, *)trim(modname),':scaleheight, alpha, k0, k1, beta', &
    8585                               scaleheight, alpha, k0, k1, beta
    8686
     
    9696        dzk1=alpha*tanh(l/k0)
    9797        dzk2=alpha*tanh((llm-k1)/k0)*beta**(l-(llm-k1))/log(beta)
    98         write(lunout, *)l, sig(l+1), zk, zk-zkm1, dzk1, dzk2
     98        WRITE(lunout, *)l, sig(l+1), zk, zk-zkm1, dzk1, dzk2
    9999        zkm1=zk
    100100     enddo
     
    332332  ENDDO
    333333
    334   write(lunout, *)  trim(modname),': BP '
    335   write(lunout, *) bp
    336   write(lunout, *)  trim(modname),': AP '
    337   write(lunout, *) ap
    338 
    339   write(lunout, *) 'Niveaux de pressions approximatifs aux centres des'
    340   write(lunout, *)'couches calcules pour une pression de surface =', preff
    341   write(lunout, *) 'et altitudes equivalentes pour une hauteur d echelle de '
    342   write(lunout, *) scaleheight,' km'
     334  WRITE(lunout, *)  trim(modname),': BP '
     335  WRITE(lunout, *) bp
     336  WRITE(lunout, *)  trim(modname),': AP '
     337  WRITE(lunout, *) ap
     338
     339  WRITE(lunout, *) 'Niveaux de pressions approximatifs aux centres des'
     340  WRITE(lunout, *)'couches calcules pour une pression de surface =', preff
     341  WRITE(lunout, *) 'et altitudes equivalentes pour une hauteur d echelle de '
     342  WRITE(lunout, *) scaleheight,' km'
    343343  DO l = 1, llm
    344344     dpres(l) = bp(l) - bp(l+1)
     
    347347     presnivs(l) = 0.5 *( ap(l)+bp(l)*preff + ap(l+1)+bp(l+1)*preff )
    348348     pseudoalt(l) = log(preff/presnivs(l))*scaleheight
    349      write(lunout, *)'PRESNIVS(', l, ')=', presnivs(l), ' Z ~ ', &
     349     WRITE(lunout, *)'PRESNIVS(', l, ')=', presnivs(l), ' Z ~ ', &
    350350          pseudoalt(l) &
    351351          , ' DZ ~ ', scaleheight*log((ap(l)+bp(l)*preff)/ &
     
    354354  DO l=1, llmp1
    355355     presinter(l)= ( ap(l)+bp(l)*preff)
    356      write(lunout, *)'PRESINTER(', l, ')=', presinter(l)
     356     WRITE(lunout, *)'PRESINTER(', l, ')=', presinter(l)
    357357  ENDDO
    358358
    359   write(lunout, *) trim(modname),': PRESNIVS '
    360   write(lunout, *) presnivs
     359  WRITE(lunout, *) trim(modname),': PRESNIVS '
     360  WRITE(lunout, *) presnivs
    361361
    362362CONTAINS
Note: See TracChangeset for help on using the changeset viewer.