Running a f90 code in f77 compiler

  • Thread starter vissu219
  • Start date
  • #1
vissu219
3
0
heys..can anyone tell me..how could i run f90 codes in an f77 compiler..wht changes in the code do i need to make to do that?
 

Answers and Replies

  • #2
zeitghost
156
0
Have you tried running it through the compiler to see what error messages it generates?
 
  • #3
vissu219
3
0
no.. but i figured out that.. i have to move each line of code such that it starts at the 7th column to run in f77 compiler..i don't know wht other changes to be made
 
  • #4
Dr Transport
Science Advisor
Insights Author
Gold Member
2,597
761
It will be a lot of work, other than the shifting of all of the lines of code to appropriate position, f90 intrinsic functions will have to be rewritten in f77 syntax, the first that comes to mind is MATMUL(A,B) which is a matrix multiplication routine. It will become a set of nested DO-loops, unless you write a function, then you only have to do it once, but there are others to look for and the compiler will find them for you.
 
  • #5
zeitghost
156
0
Is the f90 source in freeform format? (i.e. not tabbed out to column 7).

Does the f77 compiler support freeform?

How much code is there? 1k lines, 10k, 100k? or more?
 

Suggested for: Running a f90 code in f77 compiler

  • Last Post
Replies
22
Views
800
  • Last Post
Replies
1
Views
76
Replies
12
Views
242
Replies
2
Views
458
Replies
14
Views
623
Replies
8
Views
425
Replies
11
Views
988
Replies
7
Views
603
  • Last Post
Replies
12
Views
421
Replies
0
Views
130
Top