replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - Old code in FTN95
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Old code in FTN95

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
Mart



Joined: 21 Oct 2009
Posts: 1

PostPosted: Sat Jan 23, 2010 3:20 pm    Post subject: Old code in FTN95 Reply with quote

Hello everyone,

I have a question about compiling fortran code in FTN95 using Plato3 editor. The code is quite large, having original part in it with F77 syntax and recently written what works with F95.

Is there a compiler option that would allow to have such multiple syntax in code? Maybe there is a thread already discussing it?

Thank you!
Back to top
View user's profile Send private message
jjgermis



Joined: 21 Jun 2006
Posts: 404
Location: N�rnberg, Germany

PostPosted: Sat Jan 23, 2010 5:37 pm    Post subject: Reply with quote

Plato recognise automatically if you have FTN77 and FTN95 code in the project. You can add source files to your Plato project as follows:
1.) FTN77 has .for or .f extensions while
2.) FTN95 has .f90 or .f95 extensions.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8211
Location: Salford, UK

PostPosted: Sun Jan 24, 2010 7:57 pm    Post subject: Reply with quote

Fortran 77 is fixed format Fortran only
Fortran 90 etc accepts both fixed and free format Fortran.

FTN95 is a Fortran 95 compiler that accepts either fixed or free format.
It the file extension is .for, FTN95 assumes fixed format.
If it is .f90 or .f95 it assumes free format.

Alternatively there is are command line switches /fixed and /free that specify the format.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group