Hello,
I am working on installing WRF 4.2 on a Linux HPC. I am having trouble compiling because during the portion where diffwrf io_netcdf is being built, something is not linked correctly and I get the following error:
I have NetCDF 4.6.3 and NetCDF-Fortran 4.4.5 together in one folder pointed to by $NETCDF, and I also have HDF5 1.10.5 and pnetcdf 1.11.1 installed and loaded. I have attached my configure.wrf and my script I wrote to set my environment variables before running.
To narrow things down, I went back to the compilation tutorial here (https://www2.mmm.ucar.edu/wrf/OnLineTutorial/compilation_tutorial.php) and one of the commands triggers the same errors. If I run
, I get the same errors as the code box up top. If I load PHDF5 instead of HDF5, this runs just fine.
I have HDF5 installed and pointed to by $HDF5. I tried to change this to point to my PHDF5 install, but when I did that my configure script failed:
I would appreciate any assistance in figuring out why this is happening and how to fix it.
I am working on installing WRF 4.2 on a Linux HPC. I am having trouble compiling because during the portion where diffwrf io_netcdf is being built, something is not linked correctly and I get the following error:
Code:
/project/ssmith_uksr/WRF_ARW/netcdf/lib/libnetcdf.so: undefined reference to `H5Pset_dxpl_mpio'
/project/ssmith_uksr/WRF_ARW/netcdf/lib/libnetcdf.so: undefined reference to `H5Pset_fapl_mpio'
/project/ssmith_uksr/WRF_ARW/netcdf/lib/libnetcdf.so: undefined reference to `H5Pset_all_coll_metadata_ops'
/project/ssmith_uksr/WRF_ARW/netcdf/lib/libnetcdf.so: undefined reference to `H5Pset_coll_metadata_write'
make[2]: [diffwrf] Error 1 (ignored)
I have NetCDF 4.6.3 and NetCDF-Fortran 4.4.5 together in one folder pointed to by $NETCDF, and I also have HDF5 1.10.5 and pnetcdf 1.11.1 installed and loaded. I have attached my configure.wrf and my script I wrote to set my environment variables before running.
To narrow things down, I went back to the compilation tutorial here (https://www2.mmm.ucar.edu/wrf/OnLineTutorial/compilation_tutorial.php) and one of the commands triggers the same errors. If I run
Code:
mpiifort 02_fortran+c+netcdf+mpi_f.o 02_fortran+c+netcdf+mpi_c.o -L${NETCDF}/lib -lnetcdff -lnetcdf
I have HDF5 installed and pointed to by $HDF5. I tried to change this to point to my PHDF5 install, but when I did that my configure script failed:
Code:
************************** W A R N I N G ************************************
NETCDF4 IO features are requested, but this installation of NetCDF
/project/ssmith_uksr/WRF_ARW/netcdf
DOES NOT support these IO features.
Please make sure NETCDF version is 4.1.3 or later and was built with
--enable-netcdf4
I would appreciate any assistance in figuring out why this is happening and how to fix it.