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 15301 – NEMO

Changeset 15301


Ignore:
Timestamp:
2021-09-29T16:57:13+02:00 (2 years ago)
Author:
smasson
Message:

trunk: minor fix in lbc_lnk_neicoll_generic.h90 (when having zero-size array)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/LBC/lbc_lnk_neicoll_generic.h90

    r15050 r15301  
    144144      iScnt(:) = PACK( iszall, mask = llsend )                                       ! ok if mask = .false. 
    145145      iRcnt(:) = PACK( iszall, mask = llrecv ) 
    146       iSdpl(1) = 0 
     146      IF( iszS > 0 )   iSdpl(1) = 0 
    147147      DO jn = 2,iszS 
    148148         iSdpl(jn) = iSdpl(jn-1) + iScnt(jn-1)   ! with _alltoallv: in units of sendtype 
    149149      END DO 
    150       iRdpl(1) = 0 
     150      IF( iszR > 0 )   iRdpl(1) = 0 
    151151      DO jn = 2,iszR 
    152152         iRdpl(jn) = iRdpl(jn-1) + iRcnt(jn-1)   ! with _alltoallv: in units of sendtype 
Note: See TracChangeset for help on using the changeset viewer.