Ignore:
Timestamp:
Dec 4, 2024, 4:04:54 PM (3 weeks ago)
Author:
jbclement
Message:

PEM:
Removing unecessary module/subroutine "interpol_TI_PEM2PCM.F90" + Few small corrections/cleanings.
JBC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/NS_fast_subs_univ.F90

    r3527 r3532  
    3232  real(8) equildepth  ! =zdepthE
    3333  !real(8), external :: zint  ! defined in allinterfaces.mod
    34  
     34
    3535  typeE = -9; equildepth = -9999.
    36   do i=1,nz 
     36  do i=1,nz
    3737     if (rhosatav(i) <= avrho1) then
    3838        typeE=i
     
    6767  integer, intent(OUT) :: typeF  ! index of depth below which filling occurs
    6868  real(8), intent(INOUT) :: zdepthF
    69   real(8), intent(IN) :: B 
     69  real(8), intent(IN) :: B
    7070  real(8), intent(OUT) :: ypp(nz), zdepthG
    7171  integer, intent(INOUT) :: typeG  ! positive on input when Fgeotherm>0
     
    112112
    113113!-depth to shallowest perennial ice
    114   typeP = -9 
     114  typeP = -9
    115115  do i=1,nz
    116116     if (porefill(i)>0.) then
     
    157157  endif
    158158  if (typeG>0 .and. typeT<0) then
    159      call colint(porefill(:)/eta(:),z,nz,typeG-1,nz,cumfillabove) 
     159     call colint(porefill(:)/eta(:),z,nz,typeG-1,nz,cumfillabove)
    160160     newtypeG = -9
    161161     do i=typeG,nz
     
    178178     if (newtypeG>0) typeG=newtypeG
    179179  end if
    180   ! if typeG>0, then all ice at and below typeG should be erased 
     180  ! if typeG>0, then all ice at and below typeG should be erased
    181181end subroutine depths_avmeth
    182182
     
    204204
    205205  ! advance ice table, avdrho>0 is retreat
    206   if (zdepthT>=0. .and. avdrho>0.) then 
     206  if (zdepthT>=0. .and. avdrho>0.) then
    207207     typeP=-9999; typeT=-9999
    208208     do j=1,nz
     
    226226  endif
    227227  if (zdepthT>z(nz)) zdepthT=-9999.
    228  
     228
    229229  ! advance interface, avdrhoP>0 is loss from zdepthP
    230230  if (avdrhoP>0.) then
     
    232232     do j=1,nz
    233233        if (typeF>0 .and. j>=typeF) exit ! don't retreat beyond typeF
    234         if (zdepthT>=0. .and. z(j)>zdepthT) exit 
     234        if (zdepthT>=0. .and. z(j)>zdepthT) exit
    235235        call colint(porefill(1:nz)*z(1:nz),z(1:nz),nz,1,j,integ)
    236236        erase = j
     
    241241
    242242  ! new depth
    243   newtypeP = -9 
     243  newtypeP = -9
    244244  do j=1,nz
    245245     if (zdepthT>=0. .and. z(j)>zdepthT) exit
     
    253253  ub = typeF
    254254  if (newtypeP>0 .and. typeF>0 .and. newtypeP<ub) ub=newtypeP
    255   if (ub>0) then 
     255  if (ub>0) then
    256256     do j=ub,nz
    257257        porefill(j) = porefill(j) + B*ypp(j)
Note: See TracChangeset for help on using the changeset viewer.