Upwelling case can work well when setting FORT to pgi and netcdf-pgi-3.6.2.
However, when I set "setenv USE_NETCDF4 on", and change accordingly
"setenv NC_CONFIG /opt/cray/netcdf/4.2.0/pgi/119/bin/nc-config
setenv NETCDF_INCDIR /opt/cray/netcdf/4.2.0/pgi/119/include",
it is displayed that "File with unknown suffix passed to linker: @NC_FLIBS@
/usr/bin/ld: @NC_FLIBS@: No such file: No such file or directory
make: *** [/ncrc/home2/Xin.Wang/roms_projects/upwelling_pgi_netcdf4/oceanG] Error 2".
How can I solve this problem? Many thanks.
problem of upwelling case with netcdf4
Re: problem of upwelling case with netcdf4
What happens when you use the new nc-config with the "--flibs" argument? I get:
If you instead get something with the @NC_FLIBS@, perhaps the person who compiled the new Netcdf didn't include the Fortran libraries. The latest Netcdf requires that you download the C and Fortran packages separately and build them both.
Code: Select all
nc-config --flibs
-L/u1/uaf/kate/lib -lnetcdff -L/u1/uaf/kate/lib -lnetcdf -lnetcdf
Re: problem of upwelling case with netcdf4
Hi Kate, I got
roms_projects/upwelling_pgi_netcdf4> nc-config --flibs
-L/opt/cray/netcdf/4.2.0/pgi/119/lib @NC_FLIBS@
Is it normal?
roms_projects/upwelling_pgi_netcdf4> nc-config --flibs
-L/opt/cray/netcdf/4.2.0/pgi/119/lib @NC_FLIBS@
Is it normal?
Re: problem of upwelling case with netcdf4
Hi Kate,
The problem has been solved. Thanks for your help!
The problem has been solved. Thanks for your help!