Re: [netcdfgroup] Function 'nf90_put_var' exits gfortran compilation with error

Dear Jim and Jeff,

Thank you for your considerations. Now the code compiles correctly, however, I had to do a hard reset to HEAD in GIT to return to the last good configuration and proceed onwards step by step. I was using all the suggested options (-I/$NETCDFHOME/include -L$NETCDFHOME/lib -lnetcdff) but it appeared that most pprobably it was a problem related to a mismatch in the variable type declarations of the one of the user-derived variables transferred back and forth between subroutines. One is defined as a user-defined type array in the main program but only a non-array user-defined derived type in the subroutine.

Thank you for your concerns.

Regards,

Ekin



On 02/22/2012 04:47 PM, Jeff Whitaker wrote:
On 2/22/12 4:49 AM, Ekin Akoglu wrote:
Dear all,

I have a problem with NETCDF FORTRAN API. I can download and run the examples in the http://www.unidata.ucar.edu/software/netcdf/examples/programs/ web page without problem. However, in my code, 'nf90_put_var' function gives the following error during compilation:

Error: There is no specific function for the generic 'nf90_put_var'

This is strange. There are other functions compiled before this error like 'nf90_def_dim' and 'nf90_dev_var'. They pass OK through the gfortran compiler but when the compiler hits the line with 'nf90_put_var' function, it gives the error above and halts. I would be glad if you help me on the matter.

Regards,

--
*Ekin Akoglu*

Research Assistant

Institute of Marine Sciences
Middle East Technical University
P.O. Box 28, 33731
Erdemli, Mersin
Turkey
Ekin: In addition to linking the library, you have to point the compiler to the .mod files. For example,

gfortan -I<install path>/include test_prog.f90 -L<install path>/lib -lnetcdf ...

If you installed in /usr/local, <install path> = /usr/local.

-Jeff


_______________________________________________
netcdfgroup mailing list
netcdfgroup@xxxxxxxxxxxxxxxx
For list information or to unsubscribe,  visit: 
http://www.unidata.ucar.edu/mailing_lists/


--
*Ekin Akoglu*

Research Assistant

Institute of Marine Sciences
Middle East Technical University
P.O. Box 28, 33731
Erdemli, Mersin
Turkey

Web: www.ims.metu.edu.tr
Email: ekin@xxxxxxxxxxxxxxx <mailto:ekin@xxxxxxxxxxxxxxx>
Phone: +90 324 521 34 34
GSM: +90 506 554 03 90
Fax: +90 324 521 23 27
  • 2012 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: