Ignore:
Timestamp:
Mar 26, 2026, 4:29:10 PM (12 days ago)
Author:
jbclement
Message:

PEM:

  • Separate variables ownership between the module "planet" for persistent climate state and the program "pem" for transient workflow logic. It provides a meaningful structure.
  • Add lifecycle helpers for clear allocation/deallocation logic.
  • Simplify string suffix for slopes variables.

JBC

File:
1 edited

Legend:

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

    r4135 r4157  
    9595use atmosphere,       only: build4PCM_atmosphere
    9696use tracers,          only: build4PCM_tracers, nq
    97 use clim_state_rec,   only: write_restart, write_restartfi, write_restartpem
     97use clim_state_rec,   only: write_restart, write_restartfi, write_restartevo
    9898use layered_deposits, only: layering
    9999
     
    143143
    144144! Write restart files
    145 call write_restartpem(h2o_ice,co2_ice,tsoil_avg,TI,icetable_depth,icetable_thickness,ice_porefilling,h2o_ads_reg,co2_ads_reg,layerings_map)
     145call write_restartevo(h2o_ice,co2_ice,tsoil_avg,TI,icetable_depth,icetable_thickness,ice_porefilling,h2o_ads_reg,co2_ads_reg,layerings_map)
    146146call write_restartfi(is_h2o_perice,h2o_ice4PCM,co2_ice4PCM,tsurf4PCM,tsoil4PCM,inertiesoil4PCM,albedo4PCM,emissivity4PCM,flux_geo4PCM)
    147147call write_restart(ps4PCM,pa4PCM,preff4PCM,q4PCM,teta4PCM,air_mass4PCM)
     
    191191! CODE
    192192! ----
    193 suffix = '_ts'//int2str(backup_idt)
     193suffix = ''
     194suffix = suffix//'_ts'//int2str(backup_idt)
    194195
    195196call print_msg('> Backup of "restart" files at dt = '//int2str(backup_idt),LVL_NFO)
Note: See TracChangeset for help on using the changeset viewer.