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) wps compilation problem

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'm trying to compile WRF in a Ubuntu machine (19.10). I'm able to compile WRF model, but when I'm trying to compile WPS (using option 1 of configure), no exe files.

Would you know where is the problem? Attaching configure.wps, configure wrf, and log.compile(which is wps compile file).

Many thanks in advance!


  • log.compile
    151.3 KB · Views: 73
  • configure.wrf
    20.4 KB · Views: 58
  • configure.wps
    3.2 KB · Views: 58
The first error it is complaining about is

   12 | ../../ungrib/src/module_stringutil.F
      | 1
Error: Invalid character in name at (1)

I'm not sure why this is happening.
1) Did you modify any of the code for WPS?
2) Will you attach your WRF compile log, as well?
3) Will you please attach the WPS/ungrib/src/module_stringutil.f90 file, and WPS/ungrib/src/module_stringutil.F file?
Thanks for your time.

Truely, I did modify the WPS/arch/configure.defaults file as below
FFLAGS =-ffree-form -cpp -O-fconvert=big-endian-frecord-marker=4
F77FLAGS =-ffixed-form -cpp -O -fconvert=big-endian-frecord-marker=4

and the WRF compile log with 2 other files are attached.

Many thanks in advance!


  • checkwrf.log
    795.5 KB · Views: 57
  • module_stringutil.f90
    2.8 KB · Views: 55
  • module_stringutil.F
    2.8 KB · Views: 51
Thanks for sending those. I don't see anything blatantly wrong with any of those. Here are a couple of suggestions, though:
1) Unless you are planning to have very large domains (thousands x thousands of grid points), it's really not necessary to compile WPS with any sort of shared or distributed memory processing. We almost always recommend compiling serially. Can you try a serial compile and see if it makes a difference?
2) What happens if you use the default arch/configure.defaults file? Can you use that (with no modifications) to see if that makes any difference?
Finally I solved the problem.

1 modify configure.wps with
put -lgomp at the end of -L$(NETCDF)/lib -lnetcdff -lnetcdf

2 modify intmath.f with
172 if(iand(i,i-1_2)/=0) then
207 if(iand(i,i-1_1)/=0) then

The forum is so great, and thank you very much for your help.