- Timestamp:
- Dec 4, 2024, 4:04:54 PM (3 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/soil_settings_PEM_mod.F90
r3206 r3532 15 15 16 16 !======================================================================= 17 ! Author: LL, based on work by 17 ! Author: LL, based on work by Ehouarn Millour (07/2006) 18 18 ! 19 19 ! Purpose: Read and/or initialise soil depths and properties … … 53 53 alpha = 2 54 54 do 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.))) 56 56 enddo 57 57 58 do iloop = 0, nsoil_PEM-159 if(lay1*(alpha**(iloop-0.5)) > mlayer_PEM(nsoil_PCM -1)) then58 do iloop = 0,nsoil_PEM - 1 59 if(lay1*(alpha**(iloop-0.5)) > mlayer_PEM(nsoil_PCM - 1)) then 60 60 index_powerlaw = iloop 61 61 exit … … 63 63 enddo 64 64 65 do iloop = nsoil_PCM, nsoil_PEM-166 mlayer_PEM(iloop) = lay1*(alpha**(index_powerlaw + (iloop -nsoil_PCM)-0.5))65 do iloop = nsoil_PCM,nsoil_PEM - 1 66 mlayer_PEM(iloop) = lay1*(alpha**(index_powerlaw + (iloop - nsoil_PCM) - 0.5)) 67 67 enddo 68 68 69 69 ! Build layer_PEM() 70 do iloop =1,nsoil_PEM-171 layer_PEM(iloop) =(mlayer_PEM(iloop)+mlayer_PEM(iloop-1))/2.70 do iloop = 1,nsoil_PEM - 1 71 layer_PEM(iloop) = (mlayer_PEM(iloop) + mlayer_PEM(iloop - 1))/2. 72 72 enddo 73 layer_PEM(nsoil_PEM) =2*mlayer_PEM(nsoil_PEM-1) - mlayer_PEM(nsoil_PEM-2)73 layer_PEM(nsoil_PEM) = 2*mlayer_PEM(nsoil_PEM - 1) - mlayer_PEM(nsoil_PEM - 2) 74 74 75 75
Note: See TracChangeset
for help on using the changeset viewer.