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 not created when compiling WPS (but geogrid.exe and ungrib.exe are created)

This post was from a previous version of the WRF&MPAS-A Support Forum. New replies have been disabled and if you have follow up questions related to this post, then please start a new thread from the forum home page.


New member

I am facing a similar issue compiling WPS 4.2, where geogrid.exe and ungrib.exe are formed but not metgrid.exe. I followed the suggestion mentioned above by David and added -qopenmp to making the line -L$(NETCDF)/lib -lnetcdf -lnetcdff -qopenmp in configure.wps.

I am attaching my configure and compile log files for WPS and WRF.

What might be causing this?



  • compile.log
    16.6 KB · Views: 31
  • configure.wps
    3.3 KB · Views: 32
  • configure.wrf
    23.1 KB · Views: 31
  • log.compile
    85.1 KB · Views: 27
The errors in your log file concern the "scan_input.f90" file:
scan_input.o: In function `scan_input_mp_scan_input_open_':
scan_input.f90:(.text+0xae): undefined reference to `netcdf_mp_nf90_open_'
scan_input.f90:(.text+0xe8): undefined reference to `netcdf_mp_nf90_inquire_'
scan_input.f90:(.text+0x2d3): undefined reference to `netcdf_mp_nf90_inquire_'
scan_input.f90:(.text+0x2f3): undefined reference to `netcdf_mp_nf90_inquire_dimension_'
scan_input.o: In function `scan_input_mp_scan_input_close_':
scan_input.f90:(.text+0x339): undefined reference to `netcdf_mp_nf90_close_'
scan_input.o: In function `scan_input_mp_scan_input_next_field_':
scan_input.f90:(.text+0x4c1): undefined reference to `netcdf_mp_nf90_inquire_variable_'
scan_input.f90:(.text+0x657): undefined reference to `netcdf_mp_nf90_inquire_variable_'
scan_input.f90:(.text+0x898): undefined reference to `netcdf_mp_nf90_inquire_dimension_'

Could you try the suggestion by kwerner in this post to see whether the modified scan_input.F file allows the metgrid.exe program to be compiled?