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 14943 for NEMO/branches/2021/dev_r14318_RK3_stage1/src/OCE/DOM – NEMO

Ignore:
Timestamp:
2021-06-03T16:53:29+02:00 (3 years ago)
Author:
acc
Message:

#2605 : Corrections to istate.F90 and trasbc.F90 so that changes to ensure restartability with key_RK3 do not break restartability without key_RK3. Both now passing SETTE tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2021/dev_r14318_RK3_stage1/src/OCE/DOM/istate.F90

    r14941 r14943  
    158158      vv_b(:,:,Kmm) = vv_b(:,:,Kmm) * r1_hv(:,:,Kmm) 
    159159      ! 
     160#if defined key_RK3 
    160161      IF( .NOT. ln_rstart ) THEN 
     162#endif 
    161163         ! Initialize "before" barotropic velocities. "now" values are always set but  
    162164         ! "before" values may have been read from a restart to ensure restartability. 
    163          ! In the non-restart case they need to be initialised here: 
     165         ! In the non-restart or non-RK3 cases they need to be initialised here: 
    164166         uu_b(:,:,Kbb) = 0._wp   ;   vv_b(:,:,Kbb) = 0._wp 
    165167         DO_3D( 1, 1, 1, 1, 1, jpkm1 ) 
     
    170172         vv_b(:,:,Kbb) = vv_b(:,:,Kbb) * r1_hv(:,:,Kbb) 
    171173         !  
     174#if defined key_RK3 
    172175      ENDIF 
     176#endif 
    173177      ! 
    174178   END SUBROUTINE istate_init 
Note: See TracChangeset for help on using the changeset viewer.