We've seen similar problems calling C routines from Fortran 90. We have a C
BUFFIN routine to read data from a file and return it as a binary data
stream, but more recent compilers spot that a routine might first call
BUFFIN with an integer array, and then later with a real array. My only
solution is to specify use a dumbing down compile option.
This is a minor problem compared with the our main forecast model, written
in F77 with a single huge 1D data array containing all our atmospheric
variables, and lots of nasty indexing to pick out a plethora of 1D,2D,3D
real, integer and logical fields. My task for the coming year is to plan
how to re-write the whole system in F90.
John
--
John Bray, High Performance Computing Analyst
Met Office London Road Bracknell Berkshire RG12 2SZ United Kingdom
Tel: +44 (0)1344 854035 Fax: +44 (0)1344 854026
E-mail: [log in to unmask] http://www.metoffice.com
|