Opened 8 years ago
Closed 8 years ago
#719 closed upgrade (Fixed)
Replaced NC_CONFIG and nc-config in buid and make configuration files
Reported by: | arango | Owned by: | arango |
---|---|---|---|
Priority: | major | Milestone: | Release ROMS/TOMS 3.7 |
Component: | Nonlinear | Version: | 3.7 |
Keywords: | Cc: |
Description
Replaced NC_CONFIG with NF_CONFIG and nc-config with nf-config in all build scripts (build.sh and build.bash) and the make configuration scripts (Compilers/*.mk). This is only relevant when compiling ROMS with the NetCDF-4 library.
Notice that compiling with nc-config still works if the nf-config script for the appropriate compiler and NetCDF-4 is in your path. The problem with nc-config is that it calls nf-config without the full path. If nf-config is not resolved, the linking stage gives lots of errors.
NetCDF-4 made this change to distinguish between C- and Fortran compiling long time ago. However, the nf-config is not available in the earlier (old) versions of the NetCDF-4 library. For us, it is much better to use the nf-config script since it doesn't call other scripts and we can specify the full path in ROMS build script. This is convient for some of us that use different compilers and versions of the NetCDF library.