I guess my question is very similar to this one:
viewtopic.php?f=31&t=1992
But the difference is that I was able to compile ROMS successfully. The error showed when I ran ROMS.
I was able to compile ROMS (as part of COAWST. ROMS only with no coupling) using ifort with no errors. However, when I ran it, I got the following error:
Code: Select all
./coawstG: symbol lookup error: ./coawstG: undefined symbol: netcdf_mp_nf90_open_
Code: Select all
LIBS += -L$(NETCDF_LIBDIR) -lnetcdf
Code: Select all
LIBS += -L$(NETCDF_LIBDIR) -lnetcdff -lnetcdf
In my .bashrc, I defined the following:
Code: Select all
NETCDF_INCDIR=/usr/local/packages/netcdf/4.2/mvapich2-1.6/intel-11.1.059/include
NETCDF_LIBDIR=/usr/local/packages/netcdf/4.2/mvapich2-1.6/intel-11.1.059/lib
export NETCDF_INCDIR
export NETCDF_LIBDIR
Code: Select all
/usr/local/packages/netcdf/4.2/mvapich2-1.6/intel-11.1.059/lib
Code: Select all
$ nm libnetcdf.a | grep -i nf90_open
$
Code: Select all
$ nm libnetcdff.a | grep -i nf90_open
0000000000000290 T netcdf_mp_nf90_open_
00000000000000c0 T netcdf_mp_nf90_open_mp_
000000000004e110 T netcdf_mp_nf90_open_par_
Code: Select all
netcdf_mp_nf90_open_
Code: Select all
LIBS += -L$(NETCDF_LIBDIR) -lnetcdf
Code: Select all
LIBS += -L$(NETCDF_LIBDIR) -lnetcdff -lnetcdf
Attached is the build log for your reference. Can someone help me point out what went wrong?
Thanks,
Xiufeng