NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #UEF-905105]: Using NetCDF 4.1.2 with WRF



> 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