Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

WRITE Line Length

Intel_C_Intel
従業員
1,575件の閲覧回数
Is there a maximum line length when using the WRITE statement? (I'm considering a general surface matrix as output from a model)
0 件の賞賛
2 返答(返信)
Jugoslav_Dujic
高評価コントリビューター II
1,575件の閲覧回数
If I recall correctly, for default (sequential formatted) files there is a small limit (I think 256 or 512 characters), but it can be overridden using RECL= specifier in OPEN. For other types (unformatted, binary) either there's no limit or it is quite huge (~2**31).

Jugoslav
Steven_L_Intel1
従業員
1,575件の閲覧回数
You don't say which compiler you're using, so I'll assume CVF. The Compaq Fortran Language Reference Manual has tables under the description of OPEN(RECL=) that spell this out. Default is 132 for formatted, max is 2**31-1.

Steve
返信