help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fortran example "fortsub" in the manual


From: Przemek Klosowski
Subject: Re: fortran example "fortsub" in the manual
Date: Mon, 14 Dec 2009 10:10:18 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-3.9.b4.fc12 Thunderbird/3.0b4

On 12/14/2009 08:09 AM, Stefan Pofahl wrote:

       write(unit = s, fmt = '(A,I3,A,A)', iostat = ioerr)
      $ ’'There are '’, n,
      $ ’' values in the input vector'’, char(0)

Error: Expected expression in WRITE statement at (1)


The above statement is a fortran multiline extended statement, and the
continuation characters '$' have to be just right, IIRC it has to be
four spaces and a dollar char in column 5.

To test it quickly just combine them into a single line (I think the GNU fortran compiler allows lines longer than 80 characters).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]