Changeset 3249 for trunk


Ignore:
Timestamp:
Mar 4, 2024, 8:23:10 AM (9 months ago)
Author:
llange
Message:

Mars PCM
Fixing bug in initestphys: the soil depth were initialized using the old grid
(but with 57 layers). It was not detected in soil_settings -to be investigated

  • and therefore soil thermal inertia, when adding subsurface ice, were

completely wrong
LL

Location:
trunk/LMDZ.MARS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/changelog.txt

    r3248 r3249  
    45354535evolution without  adsorption
    45364536
     4537
     4538== 04/03/2024 == LL
     4539Fixing bug in initestphys: the soil depth were initialized using the old grid
     4540(but with 57 layers). It was not detected in soil_settings -to be investigated
     4541- and therefore soil thermal inertia, when adding subsurface ice, were
     4542completely wrong
  • trunk/LMDZ.MARS/libf/phymars/dyn1d/init_testphys1d_mod.F90

    r3208 r3249  
    661661    ! Initialize depths
    662662    ! -----------------
    663     do isoil = 1,nsoil
    664         layer(isoil) = 2.e-4*(2.**(isoil - 1)) ! layer depth
     663    do isoil = 0,nsoil - 1
     664       mlayer(isoil) = 2.e-4*(1 + isoil**2.9*(1 - exp(-real(isoil)/20.))) ! mid layer depth
    665665    enddo
     666    do isoil = 1,nsoil - 1
     667       layer(isoil) = (mlayer(isoil) + mlayer(isoil - 1))/2
     668    enddo
     669    layer(nsoil) = 2*mlayer(nsoil - 1) - mlayer(nsoil - 2)
    666670
    667671    ! Creating the new soil inertia table if there is subsurface ice:
     
    706710if (.not. therestartfi) qsoil = 0.
    707711
    708 ! Initialize depths
    709 ! -----------------
    710 do isoil = 0,nsoil - 1
    711     mlayer(isoil) = 2.e-4*(1 + isoil**2.9*(1 - exp(-real(isoil)/20.))) ! mid layer depth
    712 enddo
    713 do isoil = 1,nsoil - 1
    714     layer(isoil) = (mlayer(isoil) + mlayer(isoil - 1))/2
    715 enddo
    716 layer(nsoil) = 2*mlayer(nsoil - 1) - mlayer(nsoil - 2)
    717 
    718712! Initialize traceurs
    719713! -------------------
Note: See TracChangeset for help on using the changeset viewer.