CFD Online Logo CFD Online URL
Home > Forums > FLUENT

Fortran and C

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   October 21, 2006, 14:09
Default Fortran and C
Posts: n/a
Does anybody know how to write a C program that will read Fortran files. I have the fortran files just needed to translate it into C in order to Fluent be able to compile them. Thanks in advance
  Reply With Quote

Old   October 21, 2006, 19:51
Default Re: Fortran and C
Posts: n/a
Depends what do you need it to do and how complex the fortrans are?

It is possible to write a C program to link fortran files (see my previous posts, and the related responses both here and in archive on UDF programming and Fortran UDF)

However, the process of translating the fortran files to C isn't too difficult, as long as your programs aren't too long or complex. There are language translaters (f2c) but otherwise just get a few FORTRAN and C programming books and do it manually.

Let me know how you go, particularly if you work out the first option.
  Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fortran Compiler-CFX12.1 Araz CFX 13 March 27, 2017 05:37
Intrinsic Procedure 'ISNAN' in GNU FORTRAN 77 hawk Main CFD Forum 1 April 12, 2005 22:13
visual fortran Monica Main CFD Forum 1 August 28, 2004 20:45
Fortran77 or Fortran 90 Swapnil CFX 2 November 26, 2002 16:16
Why Favoring Fortran over C/C++? Zi-Wei Chiou Main CFD Forum 35 September 26, 2001 09:34

All times are GMT -4. The time now is 07:44.