This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
> Hello, > > I'm trying to link NetCDF version 4.1.2 with WRF version 3.3, and I'm > having problems. > > > > The following is the configuration I used for compiling NetCDF: > > ------------------------------------------------------------------ > > export CC=mpicc > export CXX=mpicxx > > export FC=mpif90 > export F77=mpif77 > export F90=mpif90 > > export CPP='icpc -E' > export CXXCPP='icpc -E' > > export CFLAGS='-O3 -xSSSE3 -ip -no-prec-div -m64 -fPIC' > export CXXFLAGS='-O3 -xSSSE3 -ip -no-prec-div -m64 -fPIC' > export CPPFLAGS='-DpgiFortran -I/opt/hdf5/intel/include > -I/opt/hdf4/intel/include -I/opt/udunits/intel/include -I/usr/include > -I/opt/szip/intel/include -I/usr/mpi/intel/mvapich2-1.6/include' > > export FFLAGS='-DpgiFortran -O3 -xSSSE3 -ip -no-prec-div -m64 -fPIC' > export FCFLAGS='-DpgiFortran -O3 -xSSSE3 -ip -no-prec-div -m64 -fPIC' > export FCFLAGS_f90='-DpgiFortran -O3 -xSSSE3 -ip -no-prec-div -m64 -fPIC' > export F90FLAGS='-DpgiFortran -O3 -xSSSE3 -ip -no-prec-div -m64 -fPIC' > export LDFLAGS='-DpgiFortran -O3 -xSSSE3 -ip -no-prec-div -m64 -fPIC' > > export LIBS="-L/opt/hdf5/intel/lib -lhdf5_fortran -lhdf5_hl -lhdf5 > -L/opt/hdf4/intel/lib -ldf -L/opt/udunits/intel/lib -ludunits2 > -L/usr/lib64 -lz -lm -L/opt/szip/intel/lib -lsz" > > ./configure --disable-shared --enable-large-file-tests --enable-fortran > --enable-f90 --enable-f77 --disable-dap --enable-netcdf-4 --enable-netcdf4 > --enable-parallel --enable-cxx-4 --enable-cxx --enable-hdf4 > --enable-utilities --with-libcf --with-zlib=/usr > --with-szlib=/opt/szip/intel --with-hdf4=/opt/hdf4/intel > --with-hdf5=/opt/hdf5/intel --with-curl-config=/usr/bin > --prefix=/work/sbarve/netcdf > ------------------------------------------------------------------ > Howdy Saurabh! Can you try using mpif90 for your F77 compiler too? The try and build like this: make distclean ./configure --disable-shared --disable-dap --with-hdf5=/opt/hdf5/intel --prefix=/work/sbarve/netcdf make check Don't forget to do the make distclean first! Let me know if this works. Thanks, Ed Ticket Details =================== Ticket ID: UEF-905105 Department: Support netCDF Priority: Normal Status: Closed