NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

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





  • 2009 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: