- Timestamp:
- 2018-07-13T09:28:50+02:00 (6 years ago)
- Location:
- NEMO/branches/2018/dev_r9838_ENHANCE04_RK3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2018/dev_r9838_ENHANCE04_RK3/src/OFF/nemogcm.F90
r9751 r9939 100 100 ! !== time stepping ==! 101 101 ! !-----------------------! 102 ! !== set the model time-step ==! 103 ! 104 IF( l_1st_euler ) THEN ; rDt = rn_Dt ; l_1st_euler = .TRUE. ! start or restart with Euler 1st time-step 105 ELSE ; rDt = 2._wp * rn_Dt ; l_1st_euler = .FALSE. ! restart with leapfrog 106 ENDIF 107 r1_Dt = 1._wp / rDt 108 ! NB: if l_1st_euler=T, rDt will be set to 2*rn_Dt at the end of the 1st time-step (see the DO WHILE below) 109 ! 110 ! 102 111 istp = nit000 103 112 ! … … 115 124 CALL trc_stp ( istp ) ! time-stepping 116 125 CALL stp_ctl ( istp, indic ) ! Time loop: control and print 126 IF( l_1st_euler ) THEN 127 rDt = 2._wp * rDt ! recover Leap-frog time-step 128 r1_Dt = 1._wp / rDt 129 l_1st_euler = .FALSE. 130 ENDIF 131 ! 117 132 istp = istp + 1 118 133 END DO
Note: See TracChangeset
for help on using the changeset viewer.