Ignore:
Timestamp:
Jul 5, 2024, 10:49:33 AM (4 months ago)
Author:
acozic
Message:

Add call to init_phystokenc to generate mass flux files for offline mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ICOSA_LMDZ/src/phylmd/interface_icosa_lmdz.F90

    r4857 r5018  
    226226   USE readTracFiles_mod, ONLY: delPhase
    227227!  USE phyaqua_mod, ONLY : iniaqua
    228    
     228   USE phystokenc_mod, ONLY : init_phystokenc       !  use to generate mass flow files for offline mode
    229229 
    230230  IMPLICIT NONE
     
    281281   CHARACTER(LEN=3)      :: descrq(30)            !--- Advection scheme description tags
    282282   logical, save :: first = .TRUE.
     283
     284   LOGICAL :: offline
     285   INTEGER :: offline_time
    283286
    284287
     
    467470    CALL init_time_lmdz(annee_ref, day_ref, day_ini, start_time, int(ndays), physics_timestep)
    468471
     472
     473    ! Init Offline mode
     474    offline = .FALSE.
     475    CALL getin('offline',offline)
     476
     477    !  Choosing storage frequencies for offline mass flow files 
     478    !  offline_time=12    2h=1day/12
     479    !  offline_time=8     3h=1day/8
     480    offline_time = 8
     481    CALL getin('offline_time',offline_time)
     482
     483    ! Copy over "offline" settings
     484    ! Flag and number of time steps for flux calculation and output
     485    CALL init_phystokenc(offline,int(day_length/(offline_time*physics_timestep)))
     486
     487   
    469488!  Additional initializations for aquaplanets
    470489!    CALL getin("iflag_phys",iflag_phys)
Note: See TracChangeset for help on using the changeset viewer.