John Lamb wrote:
William A. Mahaffey III wrote:
I don't suppose there's any way I could persuade you to try using C++ or C instead of FORTRAN (I gave up FORTRAN in 1988 and haven't looked back). If you're calling C functions, then I guess you just look for the declarations in an include directory and use the program above (compile it gcc name.c and run it ./a.out) to identify the actual sizes.
FORTRAN is still as much as 75% faster than C/C++ with good compilers (SGI & Intel under various linuces, including SuSE), I have seen that without fail. If you are doing runs which take days to complete, the difference definitely counts.
I guess you don't do C/C++ then. Could I interest you in java or python?
By the by, I do do some C & (frankly) like it. Almost all new stuff I write is, in fact, in C (no good w/ C++ yet ....), unless there are definite speed requirements, whence I go to FORTRAN.