Thread Closed

running a f90 code in f77 compiler

 
Share Thread Thread Tools
Sep10-08, 07:13 AM   #1
 

running a f90 code in f77 compiler


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?
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> Galaxies fed by funnels of fuel
>> The better to see you with: Scientists build record-setting metamaterial flat lens
>> Google eyes emerging markets networks
Sep11-08, 03:21 AM   #2
 
Have you tried running it through the compiler to see what error messages it generates?
Sep14-08, 12:10 AM   #3
 
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 dont know wht other changes to be made
Sep14-08, 07:57 AM   #4
 
Recognitions:
Gold Membership Gold Member
Science Advisor Science Advisor

running a f90 code in f77 compiler


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.
Sep15-08, 03:49 AM   #5
 
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?
Thread Closed
Thread Tools


Similar Threads for: running a f90 code in f77 compiler
Thread Forum Replies
having trouble running C++ compiler Programming & Comp Sci 5
SML compiler? Programming & Comp Sci 1
Convert latex code to fortran code? Math & Science Software 1
Compiler Computing & Technology 1
C++ Compiler? Computing & Technology 8