-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
In ice_var_vremap psyclone creates
!$omp target
!$omp teams loop collapse(2) default(shared) private(jk0,jk1,zts_cum1)
do jk0 = 1, loop_stop_1, 1
do jk1 = 1, loop_stop_2, 1
if (zh_cum1(jk1) <= zh_cum0(jk0) .AND. zh_cum1(jk1) > zh_cum0(jk0 - 1)) then
zts_cum1(jk1) = (zts_cum0(jk0 - 1) * (zh_cum0(jk0) - zh_cum1(jk1)) + zts_cum0(jk0) * (zh_cum1(jk1) - zh_cum0(jk0 - 1))) &
&/ (zh_cum0(jk0) - zh_cum0(jk0 - 1))
end if
enddo
enddo
!$omp end teams loop
!$omp end target
zts_cum1(nlay_i) = zts_cum0(nlay_i + 2)
!$omp target
!$omp teams loop collapse(1) default(shared) private(jk1)
do jk1 = 1, nlay_i, 1
pts_i(jk1) = MAX(0._wp, zts_cum1(jk1) - zts_cum1(jk1 - 1)) / MAX(zhnew, epsi20)
enddo
!$omp end teams loop
!$omp end target
which fails to compile with Could not find allocated-variable index for symbol - zts_cum1 (icevar.psycloned.f90: 1535)
It seems zts_cum1 should not be a private variable in the first loop?
Metadata
Metadata
Assignees
Labels
No labels