Changeset 9923 for NEMO/branches/2018/dev_r9838_ENHANCE04_MLF/src/OFF
- Timestamp:
- 2018-07-11T10:24:17+02:00 (6 years ago)
- Location:
- NEMO/branches/2018/dev_r9838_ENHANCE04_MLF/src/OFF
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2018/dev_r9838_ENHANCE04_MLF/src/OFF/dtadyn.F90
r9598 r9923 438 438 ENDIF 439 439 440 sshb(:,:) = sshn(:,:) + atfp * ( sshb(:,:) - 2 * sshn(:,:) + ssha(:,:))! before <-- now filtered440 sshb(:,:) = sshn(:,:) + rn_atfp * ( sshb(:,:) - 2 * sshn(:,:) + ssha(:,:) ) ! before <-- now filtered 441 441 sshn(:,:) = ssha(:,:) 442 442 … … 511 511 INTEGER :: jk 512 512 REAL(wp), DIMENSION(jpi,jpj) :: zhdiv 513 REAL(wp) :: z2dt 514 !!---------------------------------------------------------------------- 515 ! 516 z2dt = 2._wp * rdt 513 !!---------------------------------------------------------------------- 517 514 ! 518 515 zhdiv(:,:) = 0._wp … … 521 518 END DO 522 519 ! ! Sea surface elevation time-stepping 523 pssha(:,:) = ( psshb(:,:) - z2dt * ( r1_rau0 * pemp(:,:) + zhdiv(:,:) ) ) * ssmask(:,:)520 pssha(:,:) = ( psshb(:,:) - rDt * ( r1_rho0 * pemp(:,:) + zhdiv(:,:) ) ) * ssmask(:,:) 524 521 ! ! 525 522 ! ! After acale factors at t-points ( z_star coordinate ) -
NEMO/branches/2018/dev_r9838_ENHANCE04_MLF/src/OFF/nemogcm.F90
r9863 r9923 102 102 ! !== set the model time-step ==! 103 103 ! 104 IF( l_1st_euler ) THEN ; r2dt = rn_rdt ; l_1st_euler = .TRUE. ! start or restart with Euler 1st time-step 105 ELSE ; r2dt = 2._wp * rn_rdt ; l_1st_euler = .FALSE. ! restart with leapfrog 106 ENDIF 107 r1_2dt = 1._wp / r2dt 108 ! NB: if l_1st_euler=T, r2dt will be set to 2*rdt at the end of the 1st time-step (in step.F90) 109 ! Done here (not in domain.F90) as in ASM initialization an Euler 1st time step can be forced 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) 110 109 ! 111 110 ! … … 126 125 CALL stp_ctl ( istp, indic ) ! Time loop: control and print 127 126 IF( l_1st_euler ) THEN 128 r 2dt = 2._wp * rn_rdt! recover Leap-frog time-step129 r1_ 2dt = 1._wp / r2dt127 rDt = 2._wp * rDt ! recover Leap-frog time-step 128 r1_Dt = 1._wp / rDt 130 129 l_1st_euler = .FALSE. 131 130 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.