PSyclone icon indicating copy to clipboard operation
PSyclone copied to clipboard

ArrayRangeToLoop might incorrectly assume full range

Open nmnobre opened this issue 2 years ago • 1 comments

When processing ECMWF's NEMO code, I came across an issue in trc_oce.f90. Indeed, it'd seem that:

prgb(:,:) = zrgb(2:4,:)

is being transformed to and replaced by:

!$omp parallel default(shared), private(idx,idx_1)
!$omp do schedule(static)
do idx = LBOUND(prgb, 2), UBOUND(prgb, 2), 1
  do idx_1 = LBOUND(prgb, 1), UBOUND(prgb, 1), 1
    prgb(idx_1,idx) = zrgb(idx_1,idx)
  enddo
enddo
!$omp end do
!$omp end parallel

nmnobre avatar Jan 30 '23 11:01 nmnobre

I think this is a duplicate of issues mentioned in #1841 (second comment)

LonelyCat124 avatar May 02 '24 12:05 LonelyCat124

I am fixing this in #1841

sergisiso avatar May 28 '24 12:05 sergisiso