Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

including netcdf to cvf or ivf

tropfen
New Contributor I
562 Views
Hello,

does anyone has included netcdf into a cvf or ivf f90 project? I was trying it and failed.

I would by happy to get help.

Thanks in advance
Frank
0 Kudos
3 Replies
wen
Beginner
562 Views

I use netCDF in an IVF9.1/MSVS2005 project. See if the following procedure helps or not:

To build a library,

select the Project name in the Solution panel,

click on View -- Property Pages,

in the left-hand-side panel, click on Configuration Properties -- Fortran -- General,

in the right-hand-side panel, fill in the name of the folder containing netCDF.inc to the space after Additional Include Directories.

To build an Application,

select the Project name in the Solution panel,

click on View -- Property Pages,

in the left-hand-side panel, click on Configuration Properties -- Linker -- General,

in the right-hand-side panel, fill in the name of the folder containing netCDF.lib to the space after Additional Library Directories,

in the left-hand-side panel, click on Configuration Properties -- Linker -- Input,

in the right-hand-side panel, fill in the library name netCDF.lib.

Wen

0 Kudos
tropfen
New Contributor I
562 Views
Hello,

thanks for your help. But it is not working on my computer. I have IVF 9 with VS2003 (German). I still get the notification the compiler can't find netcdf.

In the attachment i have added my workspace.

Thanks in advance
Frank
0 Kudos
wen
Beginner
562 Views

I converted your test_net.dsp into test_net.vcproj for MSVS2005 but it did not work. Then I started my MSVS2005 and added those two *.f90 to a new project. When I built the project, a lot of error messages appeared with the first message complaining about opening the library module file Typesizes.

I added the attached typeSizes.f90 to the project and rebuilt it. The original error message disappear and new message showed that a lot of netCDF symbols were unresolved.

I added your netcdf.lib to the running directory, filled in netcdf.lib to the space in Configuration Properties Linker Input Additional Dependencies, and rebuilt the project. The error messages looked the same as before.

I replaced your netcdf.lib with my netcdf.lib, as attached, and rebuilt the project. There is still one netCDF symbol NF_INQ_FORMAT unresolved. I do not know what to do with that.

My netcdf.lib is very old. I dont know why yours, with timestamp of 2006, is smaller than mine and does not work well with your application. I wonder whether you could find another netcdf.lib that could handle nf_inq_format.

Wen

P.S., the attached NFLIB.zip contains two files. I had the original name typesizes.f90 renamed to typeSize.f90.
0 Kudos
Reply