[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #RAR-874792]: NetCDF Compile Options

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: [netCDF #RAR-874792]: NetCDF Compile Options
  • Date: Tue, 14 Feb 2012 14:22:54 -0700

Hi Mack,

> Is there a way to find out what options were used when NetCDF was compiled?
> 
> I installed the latest version for some of the researchers that I support,
> and they can not get NCAR models that worked in previous versions to
> work in 4.1.3.

If you run "nc-config --all", it shows the configure options used when the 
version of 
netCDF that included that nc-config command was built and installed.

Version 4.1.3 is supposed to be a backwards-compatible drop-in replacement for 
earlier 
versions, as far as the API and format are concerned.  The Fortran library was 
built
separately in 4.1.3, so where linking Fortran programs previously only required 
"-lnetcdf", with 4.1.3 it requires "-lnetcdff -lnetcdf" to specify both the 
Fortran and
C netCDF libraries.

There were some bugs in 4.1.3 that have been fixed in the current release 
candidate
4.2-rc1, so you might want to try that.  It's fairly close to what will soon be 
the
4.2 release.

--Russ

Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: RAR-874792
Department: Support netCDF
Priority: Normal
Status: Closed