an errer for a loop

I compiled a code and get the error:

PGF90-W-0155-Invalid accelerator region:not a single-entry, single-exit region

what’s that mean? what does a loop with a single-entry and single-exit region look like? please kindly give me hand

Thanks

Hi Teslalady,

what’s that mean?

It means your loop has some type statement which can cause the loop to exit before the end of the iteration count has been reached. Look for any STOP, EXIT, RETURN, or GO TO statement jumping out of the loop.

what does a loop with a single-entry and single-exit region look like?

A DO loop that is guaranteed to execute every iteration. The most basic example:

DO I=1,N
   A(I) = 0.0
ENDDO
  • Mat