No subject
Thu Oct 27 09:13:38 EDT 2011
1. this one creates genmake_tnc.f
cat genmake_tnc.F | cpp -traditional -P -DWORDLENGTH=4 -DALLOW_USE_MPI -DALWAYS_USE_MPI -DHAVE_SYSTEM -DHAVE_FDATE -DHAVE_ETIME -DHAVE_CLOC -DHAVE_SETRLSTK -DHAVE_SIGREG -DHAVE_STAT -I/uv/soft/netcdf/3.6.3-intel/include -I/opt/sgi/mpt/mpt-2.05/include
2. this one compiles
ifort -W0 -WB -convert big_endian -assume byterecl -fPIC -O3 -align -c genmake_tnc.f
3. this one links the libraries to create the executable
ifort -W0 -WB -convert big_endian -assume byterecl -fPIC -O3 -align -o genmake_tnc genmake_tnc.o -L/uv/soft/netcdf/3.6.3-intel/lib/ -lmpi -lnetcdf
Then you'll have to tinker with the flags etc, until this works "offline", and then you can add the appropriate lines in the build option file (INCLUDES="$INCLUDES -I/uv/soft/netcdf/3.6.3-intel/include", LIBS="$LIBS -L/uv/soft/netcdf/3.6.3-intel/lib").
M.
On Jul 30, 2012, at 7:30 PM, Patti M Sheaffer wrote:
> Specifically, what is an "inverted comma?"
>
> I've noticed some issues with library linking with the -lnetcdf call to
> gcc this way and am very curious for the fix! The best I've been able
> to do is to specifically name the library in the call. I've built several
> of these codes and always have the same problem with netcdf.
More information about the MITgcm-support
mailing list