- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a) the C in the first column indicating comment
b) an arbitrary character in the column 6 indicating continued line
c) the statement OPEN(9, FILE='CON') which previously opened a stream to console/screen
The Intel fortran compiler says it supports fortran 77, does that mean that there is an option I can set that will allow it to interpret my file as fortran 77 code, and treat these as legal statements?
I'd rather not update the code itself if I can help it, as that introduces the risk of translation errors...
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm sure you will get additional advice about opening the console. If you were sticking to f77 here, you would simply use the * device to communicate with the console, without using OPEN, and that would work the same with f95 compilers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The OPEN (FILE='CON') does not need to be changed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I did have to change out a DATE and TIME function call with a DATE_AND_TIME call... funny, I thought I was told that it only used intrinsic functions...
However, the program now runs but still can't seem to recognize the CON in
OPEN(9,FILE='CON')
as a special symbol, I get an error saying it can't find the file 'CON'. Would that be compiler specific? Is it the 9 that is throwing it off?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
DATE and TIME are not standard intrinsics.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page