- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I do not know if you can do this with Intel FORTRAN compiler or not, but I am trying to figure out how to link a unit number to a file for reading/writing outside of the source code, say in a shell script using environment varaibles.
I am sure this can be done. It can be done using IBM's XL FORTRAN Compiler. That is what I use at work, but I have Intel FORTRAN compiler on my Mac running 10.5 and using IFC 10.1.
Please help.
Thanks,
Eric
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes - the environment variable name is FORTn where n is the unit number with no leading zeroes. For example, FORT17 for unit 17. You can read about this and other run-time environment variables in the on-disk documentation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It worked! Thank You.

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