CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

C++ and FORTRAN

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 31, 2004, 23: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, 00: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, 00: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, 02: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, 07: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


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 Off
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 15: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 02:00.