This article describes how to use the netcdf 4.1 libraries in the (CVF) 6.6(C) on a windows platform. Note that CVF is superseded in favor of the Intel Fortran compilers. Before you read this you might want to consider migrating to Intel compiler.
This page is meant for those who want to use netcdf now but do not want to migrate compilers now now (no time to spare now, or perhaps due to the license fee of a new intel fortran compiler). A working Fortran example (work space + project space + compiled modules) is provided at (). Below follows a stepwise explanation on how to obtain this working example.
• Download the precompiled libraries (binaries) from. • Unzip and add these to your project folder. For this example we put the libraries in folder lib win32 vs pg • Adapt your project file either via the user interface of by manually editing the *.dsp file. You need to adapt the following. *.dsp line description /names:lowercase argument passing conventions /assume:underscore external name interpretation /iface:nomixed_str_len_arg string length argument passing Table compiler flags for external interfaces These options fit with the exact name of functions as present in the precompiled unidata netcdf binaries. Different compilers result in different settings. You might be able to get other versions of the binaries working by modifying these settings.
We found these settings by trial and error when implementing netcdf into, revision 1103) (). You an also specify these settings in the user interface. • Optionally add the option to add preprocessor flags. This allows you to flags pieces of netcdf-related code like. # ADD LINK32 kernel32.lib. Odbccp32.lib netcdf.lib /nologo /subsystem:console /machine:I386 /libpath:'lib win32 vs pg' • Running an executable with netcdf requires presence of the dll's i) next to the executable or ii) in a folder that that is in your system PATH.
You can add a macro to your *.dsp file that copies the required libraries from the unzipped unidata folder to your executable folder. Adding the libraries to a system path is not recommended, as it might result into conflict with other versions of the netcdf libraries.
For instance, note that here we deal with netcdf 4.1 for fortran, whereas the latest netcdf is already at version 4.2.
Intel® Fortran Compiler 8.0 for Linux* Systems Release Notes Intel ® Fortran Compiler 8.0 for Linux* Systems Release Notes Contents Overview The Intel ® Fortran Compiler for Linux helps make your software run at top speeds on all Intel ® IA-32 processors and the Intel ® Itanium ® processors. Optimizations include support for Streaming SIMD Extensions 2 (SSE2) in the Intel ® Pentium ® 4 and Pentium ® M processors, Streaming SIMD Extensions 3 (SSE3) in the Intel ® Pentium ® Processor 4 with Streaming SIMD Extensions 3 (SSE3) instruction support and software pipelining in the Intel Itanium ® 2 processor. Inter-procedural optimization (IPO) and profile-guided optimization (PGO) can provide greater application performance. Intel Compilers support multi-threaded code development through autoparallelism and OpenMP* support.
The Intel Fortran compiler for Itanium-based applications contains the following components. Serial casting. That combines the best technology from both Intel Fortran and Compaq* Visual Fortran. Here is how to setup the license file before installation. I have a named-user license for Intel Fortran that used to work, but is now. I am using the same computer, so my license file shouldn't need to be. For a substitute); Automated conversion of Compaq* Visual Fortran projects.