|
[Sponsors] |
June 4, 2004, 00:36 |
C++ or Fortran
|
#1 |
Guest
Posts: n/a
|
Which is better for CFD codes...C++ or Fortran?
|
|
June 4, 2004, 01:43 |
Re: C++ or Fortran
|
#2 |
Guest
Posts: n/a
|
not an issue nowadays. Most big CFD packages rewrote already its new releases to c++ but keeping fortran user interface for costumers over the age of 25 - happy with fortran, writting notes on old punch cards.
it's only about the convinience and what is easier for you to use. matej |
|
June 4, 2004, 09:01 |
Re: C++ or Fortran
|
#3 |
Guest
Posts: n/a
|
For FORmula TRANslation use Fortran, for interface C++.
|
|
June 4, 2004, 09:42 |
Re: C++ or Fortran
|
#4 |
Guest
Posts: n/a
|
Search the archieves for cfd-online. This is debated every few months. Perhaps matej's answer captures a lot of the truth?
But a LOT of high-quality math routines are written in Fortran, documented, and widely tested. To reveal my age, let me say I don't know anything about C++ libraries. |
|
June 4, 2004, 09:54 |
Re: C++ or Fortran
|
#5 |
Guest
Posts: n/a
|
I think Matej's answer captures all of the truth. Pick whatever language you're most proficient in.
I can recall one discussion in this forum where people said they were writing codes in java and visual basic. Hey, whatever floats your boat, there's no "right" answer... |
|
June 4, 2004, 14:10 |
Re: C++ or Fortran
|
#6 |
Guest
Posts: n/a
|
I also agree with Matej. You will have enough "fun" writing and debugging the code, no point of creating more "fun" by trying to learn a new language while doing that. If at some point you want to make you code look fancy (graphics interface etc), then use C++ for that part like ZZ suggested.
-- Jarmo |
|
June 4, 2004, 23:09 |
Re: C++ or Fortran
|
#7 |
Guest
Posts: n/a
|
I've also been 'shopping' for a coding language I can put all of my attention to rather than be confused/frustrated by the gamut of choices available.
Even between the FORTRANs, there's the issue of using F77 for performance, and F90 for data and code structure abstraction. F90 compilers also don't seem to optimise code as well as those for F77 (yet). I think there has been comparisons between the performance of FORTRAN and C++ and it can be shown, IF properly implemented (avoiding the 'side-effects' of object-oriented abstraction like the unintended creation of temporary storage objects), C++ can equal or beat F77, but otherwise, F77 could be several times faster. See: http://www.osl.iu.edu/~tveldhui/pape.../drdobbs2.html "Numerical methods and software tools in industrial mathematics", (Eds.) Morten Dæhlen, Aslak Tveito. Birkhäuser, 1997. I think the main selling point of C++ 'for engineering and scientific applications' proponents is that it makes long-term code maintenance and reuse much easier, not that it has the potential of taking the crown from FORTRAN in terms of performance. But then again, C++ is not the easiest of languages to learn and master. We all love MS Windows, right?. |
|
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 |