Re: C versus FORTRAN90



ambi wrote:
Hello,
I am sure this topic has been debated a number of times. We are
planning to
purchase a math library for my office. Because of budget
limitations we can only buy one license. I must choose between the C or
FORTRAN90 version of these libraries. And this brings me to my
question, is C or FORTRAN90
preferable for computational work? I use (and prefer) FORTRAN because
that is what I know.
Are there other more subtle benefits for FORTRAN over C? The arguement
by my superiors at work is that I (and all other FORTRAN users) should
switch to C because that is the way the world is going (and hence buy
the C version of the libraries).

I would appreciate any thoughts on this.

Well, it's not really a C v. f95 question, is it? The first questions that popped into my head were:
1) what's the ratio of C/f95 programmers at your company?
2) If the answer to (1) is C heavy, then your bosses (superiors? I think not! :o) are probably right. If the answer to (1) if f95 heavy, then maybe some sort of cost-benefit analysis of a wholesale switch from f95 to C at your company should be done to convince them otherwise (assuming, of course, that the result is in favour of /not/ switching).

What is the estimated cost of training all your f95 programmers in C to the level of compentency they have now in f95 and the associated downtime/lost productivity?

Absent any other info, I think the cost of an extra license would be cheap in comparison.

If the only reason management wants to use C is because "that is the way the world is going" then I wouldn't have too much confidence in their management decisions. Besides, I thought C was old hat now anyway? :o)

cheers,

paulv

--
Paul van Delst
CIMSS @ NOAA/NCEP/EMC
.



Relevant Pages

  • Re: C versus FORTRAN90
    ... FORTRAN90 version of these libraries. ... Are there other more subtle benefits for FORTRAN over C? ... switch to C because that is the way the world is going (and hence buy ... C calling Fortran is less common. ...
    (comp.lang.fortran)
  • Re: Matlab Vectorisation Speed - How is it done in c++?
    ... Beating the performance of vectorized Matlab code is very ... Matlab makes calls to optimized C and Fortran libraries ... Use optimization level 3 on numerical code and level 2 on non- ...
    (comp.soft-sys.matlab)
  • Re: finding available kind values, precisions and exponent ranges
    ... my files an extension that indicates in what Fortran standard ... If my intention was to write a Fortran 95 ... conforming source file, then i add .f95. ... to write Fortran 90, then I use .f90. ...
    (comp.lang.fortran)
  • Re: can somebody verify this C program which calls dsaupd_ ? (longish)
    ... >>>(terribly sorry for this long post which includes my two source files, ... > is NOT relevant to FORTRAN language newsgroup. ... More importantly, if your libraries compiled correctly, they were fine. ... > FORTRAN libs. ...
    (sci.math.num-analysis)
  • NAG on Fortran for finance quants
    ... Malcolm Cohen of NAG has written an article on the advantages of a ... matrix-oriented language like Fortran 2003 for quantitative finance ... promoting Fortran in QF. ... adding NEW procedures ONLY to the F77 and C libraries. ...
    (comp.lang.fortran)