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) ungrib.exe compile error: Arguments of ‘iand’ have different kind type parameters at (1)ted

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.

gkibet

New member
Hello,
After successful WPS compilation version 4.0,Only metrgrid.exe and
geogrid.exe are available.I have tried several solutions provided here but
I have not been able to generate ungrib.exe.
Please any help is appreciated.
I am a new user and its my first time compiling and installing wrf/wps.
Attached is log.compile and configure.wps

Regards,
Gertrude
 

Attachments

  • configure.wps
    3.7 KB · Views: 60
  • log.compile
    106.9 KB · Views: 54
Hi,
The error in your compile log is:
Code:
intmath.f:207:14:

  207 |       if(iand(i,i-1)/=0) then
      |              1
Error: Arguments of ‘iand’ have different kind type parameters at (1)
Take a look at this post - it addresses this problem: https://forum.mmm.ucar.edu/phpBB3/viewtopic.php?f=28&t=9367
 
@ralvarenga,
Did you follow the link posted above? That link should take you to another forum post regarding the problem. From there, you will see the fix to the WPS repository for this problem. You can get straight there from here: https://github.com/wrf-model/WPS/pull/119
 
kwerner said:
@ralvarenga,
Did you follow the link posted above? That link should take you to another forum post regarding the problem. From there, you will see the fix to the WPS repository for this problem. You can get straight there from here: https://github.com/wrf-model/WPS/pull/119

Hello,

I added those two extra lines to ungrib/src/ngl/g2/intmath.f (based on https://github.com/wrf-model/WPS/pull/119) and tried both on WRF 4.0 and 4.2.1. Still does not work.

Any help is much appreciated.



UPDATE:

I fixed it. I had to delete the old line and add the new line (I kept both initially which was wrong).
 
@hnyc2020,
After modifying the lines of code, did you rebuild the ungrib executable?
 
Top