CFD Online URL
[Sponsors]
Home > Forums > Main CFD Forum

C++ and FORTRAN

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 1, 2004, 00:15
Default C++ and FORTRAN
  #1
Steve
Guest
 
Posts: n/a
Hi, I'm presently using Visual C++ to write and compile my code, but might need to convert to using FORTRAN. I heard from my senior that it is actually possible to use C++ code and compile under FORTRAN, or something like that. Is this possible? Or rather, is there any way for me to run my code under FORTRAN without changing my present C++ text to FORTRAN language? Thanks!!
  Reply With Quote

Old   June 1, 2004, 01:44
Default Re: C++ and FORTRAN
  #2
Leo
Guest
 
Posts: n/a
You have to carry out the changes since you are using VC++. MS uses libraries that may not be available if you are using a fortran compiler from some other vendor. Under linux there is a utility available that can convert C code to Fortran. Intel has free fortran 90 compiler available for personal use.
  Reply With Quote

Old   June 1, 2004, 01:58
Default Re: C++ and FORTRAN
  #3
Leo
Guest
 
Posts: n/a
Also, the sooner you stop using VC++, the better. Linux can handle such jobs better.
  Reply With Quote

Old   June 1, 2004, 03:12
Default Re: C++ and FORTRAN
  #4
Steve
Guest
 
Posts: n/a
Ok, thanks for the advice, Leo
  Reply With Quote

Old   June 1, 2004, 08:57
Default Re: C++ and FORTRAN
  #5
Tim
Guest
 
Posts: n/a
It is also possible to call a c subroutine from fortran (and vice versa) if thats any use to you?
  Reply With Quote

Reply

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 12 November 2, 2014 13:46
Intrinsic Procedure 'ISNAN' in GNU FORTRAN 77 hawk Main CFD Forum 1 April 12, 2005 23:13
visual fortran Monica Main CFD Forum 1 August 28, 2004 21: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 10:34


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