Changeset 2795 for LMDZ5/trunk/libf
- Timestamp:
- Feb 22, 2017, 9:29:30 AM (8 years ago)
- Location:
- LMDZ5/trunk/libf/phylmd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/phylmd/physiq_mod.F90
r2794 r2795 1735 1735 ! 1736 1736 itap = itap + 1 1737 IF (is_m pi_root .AND. is_omp_root) THEN1737 IF (is_master .OR. prt_level > 9) THEN 1738 1738 IF (prt_level > 5 .or. MOD(itap,5) == 0) THEN 1739 WRITE(LUNOUT,*)'Entering physics current time = ', current_time 1740 WRITE(LUNOUT,*)'Date = ',year_cur,'/',mth_cur,'/',day_cur,':',hour/3600 1739 WRITE(LUNOUT,*)'Entering physics elapsed seconds since start ', current_time 1740 WRITE(LUNOUT,100)year_cur,mth_cur,day_cur,hour/3600. 1741 100 FORMAT('Date = ',i4.4,' / ',i2.2, ' / ',i2.2,' : ',f20.17) 1741 1742 ENDIF 1742 1743 ENDIF -
LMDZ5/trunk/libf/phylmd/time_phylmdz_mod.F90
-
Property
svn:keywords
set to
Id
r2552 r2795 1 1 ! 2 ! $Id :$2 ! $Id$ 3 3 ! 4 4 MODULE time_phylmdz_mod … … 28 28 INTEGER,SAVE :: itaufin_phy ! final iteration (in itau_phy steps) 29 29 !$OMP THREADPRIVATE(itaufin_phy) 30 REAL,SAVE :: current_time ! current elapsed time (fraction of day)from the begining of the run30 REAL,SAVE :: current_time ! current elapsed time in seconds from the begining of the run 31 31 !$OMP THREADPRIVATE(current_time) 32 32 … … 84 84 IMPLICIT NONE 85 85 INCLUDE 'YOMCST.h' 86 REAL,INTENT(IN) :: pdtphys_ 87 REAL :: julian_date 88 86 REAL,INTENT(IN) :: pdtphys_ 87 REAL :: julian_date 88 INTEGER :: cur_day 89 REAL :: cur_sec 90 89 91 ! Check if the physics timestep has changed 90 92 IF ( ABS( (pdtphys-pdtphys_) / ((pdtphys+pdtphys_)/2))> 10.*EPSILON(pdtphys_)) THEN … … 95 97 96 98 ! Update elapsed time since begining of run: 97 current_time=current_time+pdtphys/rday 99 current_time = current_time + pdtphys 100 cur_day = int(current_time/rday) + day_ini 101 cur_sec = current_time - (cur_day * rday) + (start_time * rday) 98 102 99 103 ! Compute corresponding Julian date and update calendar 100 CALL ymds2ju(annee_ref,1, day_ini,(start_time+current_time)*rday,julian_date)104 CALL ymds2ju(annee_ref,1, cur_day, cur_sec, julian_date) 101 105 CALL phys_cal_update(julian_date) 102 106 -
Property
svn:keywords
set to
Note: See TracChangeset
for help on using the changeset viewer.