Vaishnavi_198
New member
hello!
I am a first time WRF user and i have been trying to install prerequisite(zlib,hdf5,netcdf-c,netcdffortran,jasper and libpng) libraries on HPC. The compilers that are available on HPC are intel compilers.
i) On a guide to install WRF on HPC (Installing WRF from scratch in an HPC using Intel Compilers - Pratiman Homepage), i noticed that it has set the following
export CC=icc
export CXX='icpc -E'
export CPP='icpc -E'
export FC=ifort
export F77=ifort
export F90=ifort
and the WRF tutorial page (Compiling WRF) sets them as
export CC gcc
export CXX g++
export FC gfortran
export FCFLAGS -m64
export F77 gfortran
I am aware of what compilers are but i do not have enough knowledge to be able to tell which compilers/compiler version are to be used. Please suggest materials to learn about WRF compiler version compatibility.
ii) I was installing hdf5 for netcdf4-c but while configuring hdf5 I do not know if I should use "--enable-fortran' and "--enable-hl" while configuring hdf5. I could not find any mention on enabling hdf5 Fortran in any of the WRF tutorial guides. So I do not know what to do.
iii) During an unsuccessful installation of WRF I encountered the error "netcdf-c not found". Is there something like "--with-netcdf" that i need to do while configuring? I saw this solution(Building WRF with NetCDF-c and NetCDF-fortran Libraries). When i export "NETCDF=path-to-your-netcdf/NetCDF", how will WRF find this? because we are not mentioning this "NETCDF" env variable anywhere during configuration. Is "NETCDF" an env variable like "LDFLAGS"? is that why it will be able to recognise it?
It would be great if you could help me with these.
I am a first time WRF user and i have been trying to install prerequisite(zlib,hdf5,netcdf-c,netcdffortran,jasper and libpng) libraries on HPC. The compilers that are available on HPC are intel compilers.
i) On a guide to install WRF on HPC (Installing WRF from scratch in an HPC using Intel Compilers - Pratiman Homepage), i noticed that it has set the following
export CC=icc
export CXX='icpc -E'
export CPP='icpc -E'
export FC=ifort
export F77=ifort
export F90=ifort
and the WRF tutorial page (Compiling WRF) sets them as
export CC gcc
export CXX g++
export FC gfortran
export FCFLAGS -m64
export F77 gfortran
I am aware of what compilers are but i do not have enough knowledge to be able to tell which compilers/compiler version are to be used. Please suggest materials to learn about WRF compiler version compatibility.
ii) I was installing hdf5 for netcdf4-c but while configuring hdf5 I do not know if I should use "--enable-fortran' and "--enable-hl" while configuring hdf5. I could not find any mention on enabling hdf5 Fortran in any of the WRF tutorial guides. So I do not know what to do.
iii) During an unsuccessful installation of WRF I encountered the error "netcdf-c not found". Is there something like "--with-netcdf" that i need to do while configuring? I saw this solution(Building WRF with NetCDF-c and NetCDF-fortran Libraries). When i export "NETCDF=path-to-your-netcdf/NetCDF", how will WRF find this? because we are not mentioning this "NETCDF" env variable anywhere during configuration. Is "NETCDF" an env variable like "LDFLAGS"? is that why it will be able to recognise it?
It would be great if you could help me with these.