Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

metgrid.exe and geogrid.exe Not Generated

shihx

New member
Hi WRF Community,

I am experiencing an issue while compiling WPSV4.6.0. I followed the tutorial (Compiling WRF) provided on the official website for compiling WPS.The expected executables metgrid.exe and geogrid.exe were not generated, although ungrib.exe was successfully created. I have also tried similar methods found on the forum but have not been successful.( metgrid.exe and geogrid.exe not found
Below are the details of my environment and the compilation log.
I would appreciate any guidance or suggestions on how to resolve this issue.

Thank you in advance for your help!
 

Attachments

  • wps_compile.log
    120.4 KB · Views: 5
  • bashrc.txt
    2 KB · Views: 4
The issue has been resolved, and I have successfully compiled all three executable files.

The solution is similar to the method described in the post : metgrid.exe and geogrid.exe not found. Specifically, it involves modifying the configure.wrf by adding some library files and dependency flags for linking the programs after WRF_LIB.

For the Intel compiler, you need to additionally link the Intel OpenMP library and the POSIX threads library. Just add "-liomp5 -lpthread" after -lnetcdf.

Modify the configure.wps file:

Before :
WRF_LIB = -L$(WRF_DIR)/external/io_grib1 -lio_grib1 \
-L$(WRF_DIR)/external/io_grib_share -lio_grib_share \
-L$(WRF_DIR)/external/io_int -lwrfio_int \
-L$(WRF_DIR)/external/io_netcdf -lwrfio_nf \
-L$(NETCDF)/lib -lnetcdff -lnetcdf

After:
WRF_LIB = -L$(WRF_DIR)/external/io_grib1 -lio_grib1 \
-L$(WRF_DIR)/external/io_grib_share -lio_grib_share \
-L$(WRF_DIR)/external/io_int -lwrfio_int \
-L$(WRF_DIR)/external/io_netcdf -lwrfio_nf \
-L$(NETCDF)/lib -lnetcdff -lnetcdf -liomp5 -lpthread

This solution might also be applicable to the problem discussed here: Cannot create geogrid.exe and metgrid.exe (dmpar).
 
Top