Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: [netcdfgroup] Fortran90 interface

Karsten,

That function has five arguments. Your function call has six arguments. I believe this will cause that exact error message.

This is a Fortran 90 thing. When a generic interface is used, any mismatch in number of arguments, arg type, or dimensionality can trigger a "no matching specific function" error.

Dave Allured
CU/CIRES Climate Diagnostics Center (CDC)
http://cires.colorado.edu/science/centers/cdc/
NOAA/ESRL/PSD, Climate Analysis Branch (CAB)
http://www.cdc.noaa.gov/psd1/

Karsten Bolding wrote:
Hello

I'm having a problem compiling with the Fortran90 interface to NetCDF.
I've tried 3.6.2, 4.0.1-beta3 and 4.0.1.

The error is:
ncdfout.F90(219): error #6284: There is no matching specific function
for this generic function reference.   [NF90_DEF_VAR]
   iret = nf90_def_var(ncid,'lon',NF90_FLOAT,1,dims,lon_id)

but here:
http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-f90/NF90_005fDEF_005fVAR.html#NF90_005fDEF_005fVAR

shows the usage.

I'm pretty sure the library is compiled OK as I can call nf90_create(),
nf90_def_dim().

I've tried both with netcdf and netcdff

Karsten





 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690