error S0021 : Label field of continuation line is not blank

Hi,
when I try to compile this fortran code with PGI compiler x64 bit:

open(90, file=‘time.dat’) <===starts at col 5, ln 878
close(90) <===starts at col 5, ln 879

I get these two errors:

D:\Cuda Dev\Quick_cuda\util.f(878) : error S0021 : Label field of continuation line is not blank
D:\Cuda Dev\Quick_cuda\util.f(879) : error S0021 : Label field of continuation line is not blank

why? what is the possible problem I am doing??

please advice.
Dolf

Hi Dolf,

starts at col 5, ln 878

Since you are using Fixed format, the statement needs to start at column 7.

Your other option is to use Free formant, in which case either change the file suffix to “.f90” or add the flag “-Mfree”.

  • Mat

thanks Mat.
that was helpful note.

Dolf