Ignore:
Timestamp:
Apr 18, 2025, 2:53:06 PM (2 months ago)
Author:
emillour
Message:

Generic PCM:
Minor fix in tabfi: the physics time step stored in the startfi file should
not overwrite the real value of dtphys (computed in and passed by the dynamics).
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/LMDZ.GENERIC/libf/phystd/tabfi_mod.F90

    r3663 r3728  
    8787      LOGICAL :: found
    8888      CHARACTER(len=5) :: modname="tabfi"
     89      real :: cntrl_daysec, cntrl_dtphys
    8990     
    9091      write(*,*)"tabfi: nid=",nid," tab0=",tab0," Lmodif=",Lmodif
     
    181182      rcp = tab_cntrl(tab0+9)
    182183      cpp=(8.314463/(mugaz/1000.0))/rcp
    183       daysec = tab_cntrl(tab0+10)
    184       dtphys = tab_cntrl(tab0+11)
     184! daysec and dtphys are already set by inifis
     185      cntrl_daysec = tab_cntrl(tab0+10)
     186      cntrl_dtphys = tab_cntrl(tab0+11)
    185187! Informations about planet for the physics only
    186188      year_day = tab_cntrl(tab0+14)
     
    201203! soil properties
    202204      volcapa = tab_cntrl(tab0+35) ! volumetric heat capacity
     205! warn user if there has been a change in daysec or dtphys
     206      if (daysec.ne.cntrl_daysec) then
     207        write(*,*) modname//" Warning: lenght of day daysec changed from ", &
     208                   cntrl_daysec," to ",daysec
     209      endif
     210      if (dtphys.ne.cntrl_dtphys) then
     211        write(*,*) modname//" Warning: time step dtphys changed from ", &
     212                   cntrl_dtphys," to ",dtphys
     213      endif
    203214!-----------------------------------------------------------------------
    204215!       Save some constants for later use (as routine arguments)
Note: See TracChangeset for help on using the changeset viewer.