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

unformatted I/O

acastanedam
Beginner
476 Views
Hi,

I tried to write an nxn complex array as a matrix without using any format descriptor, however, depending on the size, it appeared as a single column. I have read, it has to do with the default right margin of the ouput files, which is 80 columns, as well as, it can be changed with an environment variable (FORT_UNFMT_RECL), but to do in this way I have to know the record length of a matrix row, How I can do that?; or better Is possible to change the output file file of the right margin with a compiler flag or something else?.

Thanks in advance,

Arcesio Castaeda Medina
Bogot
Colombia
0 Kudos
1 Reply
Steven_L_Intel1
Employee
476 Views

I gather you are using list-directed output. FORT_UNFMT_RECL won't help you there. You can use FORT_FMT_RECL instead, or open unit 6 with RECL= the width you want and write to unit 6.

I recommend that you use an explicit format. How would you like it to appear? It is possible to structure the format to allow arbitrary columns.

0 Kudos
Reply