View previous topic :: View next topic |
Author |
Message |
khoshravan
Joined: 03 Dec 2012 Posts: 31
|
Posted: Tue Dec 11, 2012 7:42 am Post subject: How can I change C to ! in an old code to run in FTN95 |
|
|
I have an old FORTRAN program. It has used C in the first column to show that the line is comment.
I tried to debug this program in SilverFrost FTN95 Express. It says those lines with "C" in the beginning contains an illegal character.
I have to replace them with "!" character.
1 Doesn't SilverFrost FTN95 Express, recognize "C"
2 Is it possible to define this procedure to SilverFrost FTN 95?
3 How can I solve this issue?
4 Is there easy way to find/replace only C in the first column of the code? |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8211 Location: Salford, UK
|
Posted: Tue Dec 11, 2012 9:04 am Post subject: |
|
|
C is used for a comment line in "fixed format" Fortran.
FTN95 assumes "fixed format" when the file extension is .for or when /fixed is used on the command line. |
|
Back to top |
|
 |
khoshravan
Joined: 03 Dec 2012 Posts: 31
|
Posted: Tue Dec 11, 2012 9:49 am Post subject: Re: |
|
|
PaulLaidler wrote: | C is used for a comment line in "fixed format" Fortran.
FTN95 assumes "fixed format" when the file extension is .for or when /fixed is used on the command line. |
Dear Paul
Thanks a lot.
I had read it before but totally forgot today.
Thanks again |
|
Back to top |
|
 |
|