soccer jersey forums.silverfrost.com :: View topic - Porting f77 code to f90
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 

Porting f77 code to f90

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



Joined: 04 Jan 2008
Posts: 14

PostPosted: Tue Jan 08, 2008 3:52 pm    Post subject: Porting f77 code to f90 Reply with quote

Hello,

I have got a fortran 77 code in unix. I need it to be ported to fortran 90 in unix. Can any one help me with this.

Thank you,
Regards,
Ajith.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Tue Jan 08, 2008 10:18 pm    Post subject: Reply with quote

FTN77 and FTN95 are not available for a Unix environment.
In order to use either of these compilers you will need change to Windows.
Back to top
View user's profile Send private message AIM Address
AjithSivakumar



Joined: 04 Jan 2008
Posts: 14

PostPosted: Wed Jan 09, 2008 12:20 pm    Post subject: Error while compiling unix f90 code in xp salford compiler Reply with quote

Hi,

I have a fortran code which is compatible in unix. I need it to be migrated to a XP based machine using salford compiler. I have created a new project and added all the source files using the add existing item. I need to add some libraries(with .a extension and .sl extension) also, so i have added it in the project using the add reference option. When i try to compile the code its giving the following errors.

Compiling file: yn.f90
C:\ELLA Application\trip\src\yn.F90(1) : error 441 - Illegal character combination, '-' followed by '-'
C:\ELLA Application\trip\src\yn.F90(2) : error 32 - Statement not recognised
C:\ELLA Application\trip\src\yn.F90(3) : fatal 399 - Unrecognised statement, did you forget to add /FIXED_FORMAT?

Please find below a sample program which i am trying to compile...

C***********************************************************C
C Modified by: xyz.
C Date: 13/01/2000
C Description: sample program
C************************************************************
C
FUNCTION YN(DUM,DUM2) YN 00010
LOGICAL*1 YN YN 00020
DATA IUY/1HY/,ILY/1Hy/,IUN/1HN/,ILN/1Hn/ YN 00030
READ(5,50) IANS YN 00060
YN=.FALSE. YN 00070
IF(IANS .EQ. ILY .OR. IANS .EQ. IUY) YN=.TRUE. YN 00080
50 FORMAT(A1) YN 00090
RETURN YN 00100
END YN 00110

Thank you,
Ajith
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Wed Jan 09, 2008 1:52 pm    Post subject: Reply with quote

Your code is in "fixed" Fortran. You must either use the extension .for for your source files or use /FIXED on the FTN95 command line.

Libraries for a UNIX environment must be rebuilt. If you do not have the source code for the libraries (or equivalent Windows libraries) then it will not work.
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