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 9923 for NEMO/branches/2018/dev_r9838_ENHANCE04_MLF/src/OFF – NEMO

Ignore:
Timestamp:
2018-07-11T10:24:17+02:00 (6 years ago)
Author:
gm
Message:

#1911 (ENHANCE-04): step I.2: dev_r9838_ENHANCE04_MLF

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  
    438438      ENDIF 
    439439 
    440       sshb(:,:) = sshn(:,:) + atfp * ( sshb(:,:) - 2 * sshn(:,:) + ssha(:,:))  ! before <-- now filtered 
     440      sshb(:,:) = sshn(:,:) + rn_atfp * ( sshb(:,:) - 2 * sshn(:,:) + ssha(:,:) )   ! before <-- now filtered 
    441441      sshn(:,:) = ssha(:,:) 
    442442 
     
    511511      INTEGER                       :: jk 
    512512      REAL(wp), DIMENSION(jpi,jpj)  :: zhdiv   
    513       REAL(wp)  :: z2dt   
    514       !!---------------------------------------------------------------------- 
    515       ! 
    516       z2dt = 2._wp * rdt 
     513      !!---------------------------------------------------------------------- 
    517514      ! 
    518515      zhdiv(:,:) = 0._wp 
     
    521518      END DO 
    522519      !                                                ! Sea surface  elevation time-stepping 
    523       pssha(:,:) = ( psshb(:,:) - z2dt * ( r1_rau0 * pemp(:,:)  + zhdiv(:,:) ) ) * ssmask(:,:) 
     520      pssha(:,:) = ( psshb(:,:) - rDt * ( r1_rho0 * pemp(:,:)  + zhdiv(:,:) ) ) * ssmask(:,:) 
    524521      !                                                 !  
    525522      !                                                 ! After acale factors at t-points ( z_star coordinate ) 
  • NEMO/branches/2018/dev_r9838_ENHANCE04_MLF/src/OFF/nemogcm.F90

    r9863 r9923  
    102102      !                                               !== set the model time-step  ==! 
    103103      ! 
    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) 
    110109      ! 
    111110      ! 
     
    126125                                CALL stp_ctl    ( istp, indic )  ! Time loop: control and print 
    127126         IF( l_1st_euler ) THEN 
    128             r2dt   = 2._wp * rn_rdt                              ! recover Leap-frog time-step 
    129             r1_2dt = 1._wp / r2dt 
     127            rDt   = 2._wp * rDt                                  ! recover Leap-frog time-step 
     128            r1_Dt = 1._wp / rDt 
    130129            l_1st_euler = .FALSE. 
    131130         ENDIF 
Note: See TracChangeset for help on using the changeset viewer.