[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #TDV-994339]: using the f90 module interface?



> hi ed --
> 
> i downloaded the 3.6.2 beta3 and built it.   i was hoping to use
> the module interfaces for f90 -- and i see in the src/f90 directory
> that typeSizes.mod and netcdf.mod are indeed built, but don't
> seem to be installed as part of the normal install target.

Yep. This is actually a long-standing netCDF distribution bug.

The problem was two-fold:
1 - Where do we install the mod files?

2 - Does the F90 compiler produce module filenames that are all uppercase. 
(Some do, some don't).

Well, I for one am tired of all this! So I have added a test in the autoconf 
script to determine what the .mod filename is like, and also added 
configuration settings so that they mod files will always be installed in the 
install header directory (/usr/local/include, by default).

What do you think? This will be in the next beta release - I'm testing it now.

> 
> i copied them over to the $prefix/include dir, and then the
> entry points weren't found at link time, so i created a
> libnetcdff90.a from the typeSizes.o and netcdf.o files in that
> same src/f90 dir, and copied that into $prefix/lib and linked
> with both -lnetcdff90 and -lnetcdf and it worked.

You should not have had to create libnetcdff90.a...
> 
> is the module stuff supposed to be installed or am i treading
> on new and uncharted territory here?
> 
> i'm running on mac os x 10.3 with the absoft 9.x compiler.
> i can send copious config info if that helps -- but first i wanted
> to see if you expected this to work or not.
> 

Thanks to you for helping me get this sorted out!

Ed

Ticket Details
===================
Ticket ID: TDV-994339
Department: Support netCDF
Priority: Normal
Status: Open