- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Is there a maximum line length when using the WRITE statement? (I'm considering a general surface matrix as output from a model)
- Marcas:
- Intel® Fortran Compiler
Link copiado
2 Respostas
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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
Jugoslav
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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
Steve

Responder
Opções do tópico
- Subscrever fonte RSS
- Marcar tópico como novo
- Marcar tópico como lido
- Flutuar este Tópico para o utilizador atual
- Marcador
- Subscrever
- Página amigável para impressora