problem of upwelling case with netcdf4

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
xinwang
Posts: 11
Joined: Wed May 30, 2012 4:53 pm
Location: NOAA/AOML

problem of upwelling case with netcdf4

#1 Unread post by xinwang »

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.

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: problem of upwelling case with netcdf4

#2 Unread post by kate »

What happens when you use the new nc-config with the "--flibs" argument? I get:

Code: Select all

 nc-config --flibs
-L/u1/uaf/kate/lib -lnetcdff -L/u1/uaf/kate/lib -lnetcdf -lnetcdf
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.

xinwang
Posts: 11
Joined: Wed May 30, 2012 4:53 pm
Location: NOAA/AOML

Re: problem of upwelling case with netcdf4

#3 Unread post by xinwang »

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?

xinwang
Posts: 11
Joined: Wed May 30, 2012 4:53 pm
Location: NOAA/AOML

Re: problem of upwelling case with netcdf4

#4 Unread post by xinwang »

Hi Kate,
The problem has been solved. Thanks for your help!

Post Reply