openaccpgi-accelerator

Line too long in PGI 16.9. How to solve?


USe the following dummy code to replicate the issue.

program pp
  implicit none
  real*8,dimension(45) :: refPoints
  refPoints(:) = (/ -1.0 , 1.0 , 1.0 , -1.0 , -1.0 , 1.0 , 1.0 , -1.0 , 0.0 , 1.0 , 0.0 , -1.0 , 0.0 , 1.0 , 0.0 , -1.0 , -1.0 , 1.0 , 1.0 , -1.0 , 0.0 , 1.0 , 0.0 ,-1.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0 , 1.0, 1.0, 2.0 , 3.0, 34.0, 35.0, 25.0, 1.0, 50.0, 5.0, 55.0 , 1.0 , 2.0, 3.0, 4.0, 5.0/)

end program pp

PGF90-S-0285-Source line too long (pp.f90: 6) PGF90-S-0023-Syntax error - unbalanced parentheses (pp.f90: 6) 0 inform, 0 warnings, 2 severes, 0 fatal for pp


Solution

  • 132 columns is limit the F90 standard and going beyond this limit is undefined behavior. While a pain, you'll be better off in the long run by getting your code into compliance by adding continuations.