Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

c to fortan

Status
Not open for further replies.

milenko76

Technical User
Mar 26, 2010
100
PT
Well the problem is I have a program in C,is it possible to translate it to FORTRAN.Is it to complicated?
 
Why do you want to translate a C program into FORTRAN ?

From a general point of you, I disagree with any translation without a very very very strong reason.

In addition, C and FORTRAN are very easy to couple together, even in a portable way thanks to the iso_c_binding feature of FORTRAN.
 
Which version of Fortran? F77 is not so easy if structures are used, F90/95/2003 is a lot easier.

Is there any character string manipulation - this isn't so easy to translate.

Does it use any math functions like j0 or j1? There are equivalents but not always in the same precision.
 
Thamks guys.Well yes I realize now that this is probably not the best option.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top