Hi Catherine,
Check your compiler manuals. SGI may be similar to Cray (for
historical reasons ;-) From our FAQ (edited for you):
------------------------------------
There seems to be some limit to the length of a line/record in Fortran90
standard output, maybe sequential output files generally. Is there a way of
changing this?
--------------
Yes, there is a (system dependent) default record length for f90 formatted
sequential files. For named files, on the SX-5, the default is
(2048M - 1)bytes = 2147483647 characters.
Use RECL=nnn on OPEN(....) to change it.
...
The Cray f90 manual says, under the discussion of the OPEN statement:
"If the RECL= specifier is absent for a file connected for sequential access,
the default value is 267 characters."
...
Note that output to "standard output" (unit 6) may be different.
For NEC's f90, there are several environment variables which
affect execution. One of these is F_SYSLEN which sets the maximum
number of characters that can be output to the standard output
file (line length). Default value is 134.
For list-directed I/O, the (unchangeable) limit seems to be 80 characters.
...
Can't find anything specified for Cray stdin/stdout or list directed,
but a suggestion...
You can't use 100,101,102 in an OPEN and change RECL, however
you may be able to use OPEN(UNIT=6, RECL=...) in conjunction with
the system command
assign -D stdout u:6
before execution. ???
YMMV. Haven't tried this one.
Cheers,
Len
--
[log in to unmask]:+61 3 9669 8109: CSIRO/Bureau of Meteorology
High Performance Computing and Communications Centre
24th floor, 150 Lonsdale St | GPO Box 1289K, Melbourne, VIC 3001 Australia
On Tuesday, 25 June 2002, at 17:3,
Catherine Moroney <[log in to unmask]> wrote:
> I want to write a long string (>= 5000 characters) to standard out
> and am having problems. It keeps on crashing on me with a 'record
> too long' error even with the following subroutine in place.
|