Ignore:
Timestamp:
Feb 12, 2026, 12:32:15 PM (2 weeks ago)
Author:
jbclement
Message:

PEM:
Following r4065, some safeguards forgotten in "io_netcdf.F90" + 'tsurf' is not needed anymore in the "start1D.txt" + few forgotten small updates.
JBC

File:
1 edited

Legend:

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

    r4065 r4068  
    265265    allocate(character(8) :: num)
    266266end if
    267 allocate(delta_icetable(ngrid),icetable_depth_old(ngrid,nslope),is_co2ice_disappeared(ngrid,nslope))
     267allocate(delta_icetable(ngrid),icetable_depth_old(ngrid,nslope),is_co2ice_disappeared(ngrid,nslope),tsoil_ts_old(ngrid,nsoil,nslope,nday))
    268268is_co2ice_disappeared(:,:) = .false.
    269269delta_icetable(:) = 0._dp
     
    290290        ! Conversion to surface ice
    291291        call layering2surfice(layerings_map,h2o_ice,co2_ice,h2oice_depth)
    292 
    293292    else
    294293        zlag(:,:) = 0._dp
     
    324323
    325324        ! Evolve soil temperature
    326         allocate(tsoil_ts_old(ngrid,nsoil,nslope,nday))
    327325        call evolve_soil_temp(tsoil_avg,tsurf_avg,tsoil_ts,tsoil_ts_old,h2o_soildensity_avg)
    328326
     
    491489
    492490! Write the "start.nc"
    493 call write_restart(ps4PCM,pa4PCM,preff4PCM,tsurf4PCM,q4PCM,teta4PCM,air_mass4PCM)
     491call write_restart(ps4PCM,pa4PCM,preff4PCM,q4PCM,teta4PCM,air_mass4PCM)
    494492
    495493! Update the duration information of the simulation
Note: See TracChangeset for help on using the changeset viewer.