Changeset 3042 for trunk


Ignore:
Timestamp:
Sep 13, 2023, 2:33:49 PM (22 months ago)
Author:
jbclement
Message:

Mars PEM:
The date and time are redefined at the end of PEM to write the file "restarfi_evol.nc". Like so, the next GCM runs can restart at the date and time given at the beginning of the simulation since the PEM is only progressing by step of one Martian year.
JBC

Location:
trunk
Files:
4 edited

Legend:

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

    r3039 r3042  
    116116integer :: day_ini   ! First day of the simulation
    117117real    :: pday      ! Physical day
    118 real    :: ptime     ! Physical time
    119118real    :: time_phys ! Same as GCM
    120119real    :: ptimestep ! Same as GCM
     
    11361135!------------------------
    11371136! III_b.1 Write restart_evol.nc
    1138 ptimestep = iphysiq*daysec/real(day_step)/nsplit_phys
    1139 print*, ptimestep,dtphys,iphysiq*daysec/real(day_step),nsplit_phys
     1137ptimestep = iphysiq*daysec/real(day_step)/nsplit_phys ! dtphys/nsplit_phys
    11401138pday = day_ini
    1141 ptime = 0.
    1142 ztime_fin = pday - day_end + ptime + ptimestep/(float(iphysiq)*daysec)
     1139ztime_fin = time_phys
    11431140
    11441141allocate(p(ip1jmp1,nlayer + 1))
  • trunk/LMDZ.MARS/changelog.txt

    r3040 r3042  
    41844184* Some improvements for the script modify_startfi_orbit.sh;
    41854185* Some changes in run_PEM.def and xml files.
    4186 JBC
    41874186
    41884187== 11/09/2023 == JBC
     
    41954194== 12/09/2023 == JBC
    41964195The variable 'timeperi' (defined in "planete_h.F90" and computed in "iniorbit.F") is renamed into 'lsperi' and thus slightly changed to be coherent to the solar longitude of perihelion in radian. It can now be used out of the box by other subroutines/programs like the PEM.
     4196
     4197== 13/09/2023 == JBC
     4198The date and time are redefined at the end of PEM to write the file "restarfi_evol.nc". Like so, the next GCM runs can restart at the date and time given at the beginning of the simulation since the PEM is only progressing by step of one Martian year.
  • trunk/LMDZ.MARS/libf/phymars/dyn1d/testphys1d.F

    r3036 r3042  
    9797      REAL day            ! date during the run
    9898      REAL time           ! time (0<time<1 ; time=0.5 a midi)
    99       REAL dttestphys         ! testphys1d timestep
     99      REAL dttestphys     ! testphys1d timestep
    100100      REAL play(nlayer)   ! Pressure at the middle of the layers (Pa)
    101101      REAL plev(nlayer+1) ! intermediate pressure levels (pa)
  • trunk/LMDZ.MARS/libf/phymars/physiq_mod.F

    r3037 r3042  
    258258c ----------------------
    259259      INTEGER,SAVE :: day_ini ! Initial date of the run (sol since Ls=0)
    260       INTEGER,SAVE :: icount     ! counter of calls to physiq during the run.
     260      INTEGER,SAVE :: icount  ! Counter of calls to physiq during the run.
    261261      REAL,SAVE :: time_phys
    262262
Note: See TracChangeset for help on using the changeset viewer.