numpy/numpy — pull request #289 by Dynetrekk (2012-05-31 16:56:46+00:00)
Title: f2py related test, test_kind.py, now works for precision up to and inclu...

...ding 15 for all compilers (save for the NAG compiler). For gfortran it works for precision up to and including 20.

I suppose the selectedrealkind() function should be rewritten, otherwise f2py might use incorrect kind values for non-gfortran compilers. However, if there is no reliable way of detecting which compiler is being used, there is no way to know what the correct kind values are. An alternative is to not return kind values above 8, or to state more clearly that f2py does not support kinds above 8, or equivalently, selected_real_kind(p) for values p > 15.

I was forced to uninstall and reinstall both ifort and gfortran to run the tests properly. It turned out that the error I got previously was because numpy was very clever at finding my ifort installation, even after I removed the PATH modifications in .bash_profile...

(Some comments are related to an offline discussion with Ralf.)