|
[Sponsors] |
May 31, 2004, 23:15 |
C++ and FORTRAN
|
#1 |
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!!
|
|
June 1, 2004, 00:44 |
Re: C++ and FORTRAN
|
#2 |
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.
|
|
June 1, 2004, 00:58 |
Re: C++ and FORTRAN
|
#3 |
Guest
Posts: n/a
|
Also, the sooner you stop using VC++, the better. Linux can handle such jobs better.
|
|
June 1, 2004, 02:12 |
Re: C++ and FORTRAN
|
#4 |
Guest
Posts: n/a
|
Ok, thanks for the advice, Leo
|
|
June 1, 2004, 07:57 |
Re: C++ and FORTRAN
|
#5 |
Guest
Posts: n/a
|
It is also possible to call a c subroutine from fortran (and vice versa) if thats any use to you?
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |