Re: [f2py] line length
Pearu Peterson <[email protected]> Mon, 9 Aug 2010 22:50:41 +0300
| Newsgroups | gmane.comp.python.f2py.user |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Aug 9, 2010 at 7:02 PM, Al Niessner <[email protected]> wrote: > > I get a lot of these messages: > > get_parameters: got "EOL while scanning string literal (<string>, line > 1)" on 'kind("(1e0' This may also indicate a bug. If telling f2py that the file is in free format (see below) does not eliminate these messages, send me an example file that reproduces this issue. > I can tell gfortran to allow more than 72 characters with > -ffixed-line-length-none. However, I have not seen a switch in the f2py > for that layer. Am I missing it or is there a better way to signal f2py > to ignore the fixed format? Here are two ways to tell f2py that the Fortran source is in free format: 1) Add the following line ! -*- f90 -*- as the first line of .f file. 2) or rename .f files to .f90 files. HTH, Pearu