View Full Version : Fortran and C++?
Does anyone know both Fortran and C++ well? I have Fortran code that I am trying to read and translate into C++, and I have some questions.
It's not something that can be posted here - it is detailed, line by line, and would take a while. Does anyone know how I might begin to seek assistance on this?
charlesdwright
09-23-2008, 02:21 PM
It's been such a long time...
BUT, I think if you google around you'll find some translation possibilities...
http://www.math.utah.edu/software/c-with-fortran.html
look for something called f2c...
hopefully those will assist.
alain
09-23-2008, 02:49 PM
Does anyone know both Fortran and C++ well? I have Fortran code that I am trying to read and translate into C++, and I have some questions.
It's not something that can be posted here - it is detailed, line by line, and would take a while. Does anyone know how I might begin to seek assistance on this?
Pat, I did some FORTRAN a while back (long while back) and I remember it was not difficult. Email me or PM me and we can talk about it.
However, if you are talking about matrix code (BLAS, LAPACK type of code), it might be hand optimized for FORTRAN and it could be hard to translate and achieve the same speed. Although the result will be the same...
Thank you gentlemen.
Alain I sent you a PM.
vBulletin® v3.8.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.