Changeset 2435 for LMDZ5/branches/testing/libf/phylmd/time_phylmdz_mod.F90
- Timestamp:
- Jan 28, 2016, 5:02:13 PM (9 years ago)
- Location:
- LMDZ5/branches/testing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/branches/testing
- Property svn:mergeinfo changed
/LMDZ5/trunk merged: 2397-2403,2405-2407,2410-2413,2415-2424,2426-2429,2431-2432,2434
- Property svn:mergeinfo changed
-
LMDZ5/branches/testing/libf/phylmd/time_phylmdz_mod.F90
r2408 r2435 77 77 END SUBROUTINE init_iteration 78 78 79 SUBROUTINE update_time(pdtphys_) 80 ! This subroutine updates the module saved variables. 81 USE ioipsl, ONLY : ymds2ju 82 USE phys_cal_mod, ONLY: phys_cal_update 83 USE print_control_mod, ONLY: lunout 84 IMPLICIT NONE 85 REAL,INTENT(IN) :: pdtphys_ 86 REAL :: julian_date 87 88 ! Check if the physics timestep has changed 89 IF ( ABS( (pdtphys-pdtphys_) / ((pdtphys+pdtphys_)/2))> 10.*EPSILON(pdtphys_)) THEN 90 WRITE(lunout,*) "WARNING ! Physics time step changes from a call to the next",pdtphys_,pdtphys 91 WRITE(lunout,*) "Not sure the physics parametrizations can handle this..." 92 ENDIF 93 pdtphys=pdtphys_ 94 95 ! Update elapsed time since begining of run: 96 current_time=current_time+pdtphys 97 98 ! Compute corresponding Julian date and update calendar 99 CALL ymds2ju(annee_ref,1,day_ini,start_time+current_time,julian_date) 100 CALL phys_cal_update(julian_date) 101 102 END SUBROUTINE update_time 103 79 104 END MODULE time_phylmdz_mod 80 105
Note: See TracChangeset
for help on using the changeset viewer.