- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 (
Thanks in advance,
Arcesio Castaeda Medina
Bogot
Colombia
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page