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/soil_settings_PEM_mod.F90

    r3206 r3532  
    1515
    1616!=======================================================================
    17 !  Author: LL, based on work by  Ehouarn Millour (07/2006)
     17!  Author: LL, based on work by Ehouarn Millour (07/2006)
    1818!
    1919!  Purpose: Read and/or initialise soil depths and properties
     
    5353alpha = 2
    5454do iloop = 0,nsoil_PCM - 1
    55     mlayer_PEM(iloop) = lay1*(1+iloop**2.9*(1-exp(-real(iloop)/20.)))
     55    mlayer_PEM(iloop) = lay1*(1 + iloop**2.9*(1 - exp(-real(iloop)/20.)))
    5656enddo
    5757
    58 do iloop = 0, nsoil_PEM-1
    59     if(lay1*(alpha**(iloop-0.5)) > mlayer_PEM(nsoil_PCM-1)) then
     58do iloop = 0,nsoil_PEM - 1
     59    if(lay1*(alpha**(iloop-0.5)) > mlayer_PEM(nsoil_PCM - 1)) then
    6060        index_powerlaw = iloop
    6161        exit
     
    6363enddo
    6464
    65 do iloop = nsoil_PCM, nsoil_PEM-1
    66     mlayer_PEM(iloop) = lay1*(alpha**(index_powerlaw + (iloop-nsoil_PCM)-0.5))
     65do iloop = nsoil_PCM,nsoil_PEM - 1
     66    mlayer_PEM(iloop) = lay1*(alpha**(index_powerlaw + (iloop - nsoil_PCM) - 0.5))
    6767enddo
    6868
    6969! Build layer_PEM()
    70 do iloop=1,nsoil_PEM-1
    71 layer_PEM(iloop)=(mlayer_PEM(iloop)+mlayer_PEM(iloop-1))/2.
     70do iloop = 1,nsoil_PEM - 1
     71layer_PEM(iloop) = (mlayer_PEM(iloop) + mlayer_PEM(iloop - 1))/2.
    7272enddo
    73 layer_PEM(nsoil_PEM)=2*mlayer_PEM(nsoil_PEM-1) - mlayer_PEM(nsoil_PEM-2)
     73layer_PEM(nsoil_PEM) = 2*mlayer_PEM(nsoil_PEM - 1) - mlayer_PEM(nsoil_PEM - 2)
    7474
    7575
Note: See TracChangeset for help on using the changeset viewer.