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

(RESOLVED) Not generating ungrib.exe

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
Hello everyone,I am trying to compile the WPS, only the ungrib.exe can't be produced. I am attaching configure.wps, intmath.f and a compile log file. I would really appreciate it if someone could help me!!I have read a similar topic with the same problem but i didnt have any luck with the solutions proposed.
Thanks all in advance.

it shows the error about intmath,intmath.mod which is in \WPS\ungrib\src\ngl\g2. I don't know why it happens.

gfortran -c -ffixed-form -O -fconvert=big-endian -frecord-marker=4 intmath.f
207 | if(iand(i,i-1)/=0) then
| 1
Error: Arguments of ‘iand’ have different kind type parameters at (1)

Fatal Error: Cannot open module file ‘intmath.mod’ for reading at (1): No such file or directory


  • configure.wps
    3.6 KB · Views: 78
  • log.compile
    114.7 KB · Views: 78
  • intmath.f
    7.3 KB · Views: 99
Which version of the WPS are you using? This looks like the same issue that was addressed by WPS PR #119 prior to the WPS v4.1 release last year.