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 4959 for branches – NEMO

Changeset 4959 for branches


Ignore:
Timestamp:
2014-12-02T15:57:40+01:00 (9 years ago)
Author:
cetlod
Message:

2014/dev_MERGE_2014 : fix out of bounds in ldfslp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2014/dev_MERGE_2014/NEMOGCM/NEMO/OPA_SRC/LDF/ldfslp.F90

    r4946 r4959  
    408408         ! set the slope of diffusion to the slope of s-surfaces  
    409409         !      ( c a u t i o n : minus sign as fsdep has positive value )  
    410          DO jk = 1, jpk  
     410         DO jj = 2, jpjm1  
     411            DO ji = fs_2, fs_jpim1   ! vector opt.  
     412               uslp(ji,jj,1) = -1./e1u(ji,jj) * ( fsdept_b(ji+1,jj,1) - fsdept_b(ji ,jj ,1) )  * umask(ji,jj,1)  
     413               vslp(ji,jj,1) = -1./e2v(ji,jj) * ( fsdept_b(ji,jj+1,1) - fsdept_b(ji ,jj ,1) )  * vmask(ji,jj,1)  
     414               wslpi(ji,jj,1) = -1./e1t(ji,jj) * ( fsdepw_b(ji+1,jj,1) - fsdepw_b(ji-1,jj,1) ) * tmask(ji,jj,1) * 0.5  
     415               wslpj(ji,jj,1) = -1./e2t(ji,jj) * ( fsdepw_b(ji,jj+1,1) - fsdepw_b(ji,jj-1,1) ) * tmask(ji,jj,1) * 0.5  
     416            END DO  
     417         END DO  
     418 
     419         DO jk = 2, jpk  
    411420            DO jj = 2, jpjm1  
    412421               DO ji = fs_2, fs_jpim1   ! vector opt.  
Note: See TracChangeset for help on using the changeset viewer.