New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 9939 for NEMO/branches/2018/dev_r9838_ENHANCE04_RK3/src/OFF/nemogcm.F90 – NEMO

Ignore:
Timestamp:
2018-07-13T09:28:50+02:00 (6 years ago)
Author:
gm
Message:

#1911 (ENHANCE-04): RK3 branche phased with MLF@9937 branche

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  
    100100      !                            !==   time stepping   ==! 
    101101      !                            !-----------------------! 
     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      ! 
    102111      istp = nit000 
    103112      ! 
     
    115124                                CALL trc_stp    ( istp )         ! time-stepping 
    116125                                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         ! 
    117132         istp = istp + 1 
    118133      END DO 
Note: See TracChangeset for help on using the changeset viewer.