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

metegrid.exe can not output data to outfile

Ningzhiqian

New member
I compile WRF-4.6.0 and WPS-4.6.0 with gfortran-14.2.1. But when I run WPS, the Geogrid and ungrib.exe run normal, but the metgrid.exe do not write any fields to the outputfile it write some domain set data only. and it display :metegrid.exe run sucessfully. have no any error information.

What can i do? help me please. thinks a lot.
 

Attachments

  • metgrid.log
    237.8 KB · Views: 3
  • namelist.wps
    1.6 KB · Views: 6
  • 截图 2024-10-11 15-33-13.png
    截图 2024-10-11 15-33-13.png
    146.3 KB · Views: 13
Hi,
Can you provide one or two of your data input files? You can try to attach them here, but if they are too big, see the home page of this forum for instructions on sharing large files. Thanks!
 
Hi,
Can you provide one or two of your data input files? You can try to attach them here, but if they are too big, see the home page of this forum for instructions on sharing large files. Thanks!
1. I have upload two files to Nextcloud nemed ningzhiqian.gfs.0p25.2022060100.tar
2. Early,I compile WPS-4.5 and WRF-4.5 with Gcc-12,The WPS run normal with these GFS data, when I compile WPS-4.6.0 and WPS-4.6.0 with gcc-14,the wps can not run correctly.I doubt these problems regarding GCC-14.

thinks a lot .
 
Hi,
Can you provide one or two of your data input files? You can try to attach them here, but if they are too big, see the home page of this forum for instructions on sharing large files. Thanks!
I attach some file from ungrib.exe and metgrid.exe here.
 
1. I have upload two files to Nextcloud nemed ningzhiqian.gfs.0p25.2022060100.tar
2. Early,I compile WPS-4.5 and WRF-4.5 with Gcc-12,The WPS run normal with these GFS data, when I compile WPS-4.6.0 and WPS-4.6.0 with gcc-14,the wps can not run correctly.I doubt these problems regarding GCC-14.

thinks a lot .
I try use :
ulimit -s unlimited

but it not works.
 
Thanks for sharing those files. I've tested this out with your input files and I'm not having that problem. I tested with both wpsv4.5 and wpsv4.6.0.

1) In the screenshot you sent above, I see you have copied the met* files to your wrf running directory. I assume the met_em* files are the same size in the WPS directory, as well? I just want to make sure it's not an issue that occurred when you copied the files over.

2) Did you happen to make any modifications to the WPS code, or is it generic out-of-the-box code? Either way, just as a test, can you download and install a clean version of WPSv4.6.0 and try with that one to see if anything changes?
 
Thanks for sharing those files. I've tested this out with your input files and I'm not having that problem. I tested with both wpsv4.5 and wpsv4.6.0.

1) In the screenshot you sent above, I see you have copied the met* files to your wrf running directory. I assume the met_em* files are the same size in the WPS directory, as well? I just want to make sure it's not an issue that occurred when you copied the files over.

2) Did you happen to make any modifications to the WPS code, or is it generic out-of-the-box code? Either way, just as a test, can you download and install a clean version of WPSv4.6.0 and try with that one to see if anything changes?

Thinks for your reply.

1) The parameter "opt_output_from_metgrid_path" in namelist.wps file have been set to the work directory, so the metgrid.exe output the met* files to this set direscory, the met* files is not copied to this diredtory.

2) I download WPS verion 4.5 and 4.6.0 from WRF USERS PAGE. I have no any modifications to WPS code either verion 4.5 or 4.6.0.

3) As I said above, early, I compile WPS-4.5 and WRF-4.5 with GCC-12, the WPS run normal. But when I compile WPS-4.6.0 and WPS-4.6.0 with GCC-14, the WPS can not run correctly. And then, I compile WPS-4.5 and WRF-4.5 with GCC-14, the WPS-4.5 can not run correctly too. So, I doubt these problems occurred regarding GCC-14.

4) I configure WPS use "--build-grib2-libs" option.
 

Attachments

  • 截图 2024-10-21 15-55-07.png
    截图 2024-10-21 15-55-07.png
    87.8 KB · Views: 8
Last edited:
Thanks for sharing that information. Just to be sure, I tried one more test by recompiling my WPS with GCC (I only have access to V13, but like you, I also don't think the GCC version is the issue), but everything worked fine. Since I'm not able to repeat this error on my end, and no one else has had this issue that we are aware of, there isn't much I can do, regarding the problem on your end. However, I went ahead and used your namelist, along with GFS 0.25 degree data, to create some met_em* files for you for this particular set-up. Let me know if you have any trouble accessing that link.

I realize this only helps with this one case, so if you have others, you'll need to get the issue sorted out. For that, I can offer these final recommendations:

1) Instead of outputting the met_em* files to your wrf running directory, have them output in the WPS directory first, then copy or link them to the wrf running directory (I don't expect this to fix the issue).

2) Try recompiling WPS if you didn't already. It was unclear from your "2)" above if you did that when I suggested it, or if you were just telling me where you obtained the files originally. If you downloaded the source code, perhaps trying to use "git clone" to grab the code, instead.
Code:
git clone https://github.com/wrf-model/WPS.git

3) Seek guidance from a systems administrator at your institution. They should know your system better than I do, and perhaps they may have an idea of what the problem may be.
 
1) The wrf worked fine with your mete_em* files.

2) Thanks for your help again. If you have any other revommendations to the issue, tell me please.
 
Last edited:
Actually, I am having the exact same issues with metgrid in WPS4.6 as the original poster, running on Mac OSX Sonoma. The log file suggests metgrid is reading, processing and writing the data fields as normal, but at the end only the dimensions, variables and global attributes are written to the met_em file. The data fields are completely blank for each time (and therefore each file). The only other issue that appears are messages about floating point exceptions (IEEE_OVErFLOW_FLAG, IEEE_UNDERFLOW_FLAG and IEEE_DENORMAL) that have been reported in posts from earlier years but without any apparent ill effects on the met_em files.
 
Actually, I am having the exact same issues with metgrid in WPS4.6 as the original poster, running on Mac OSX Sonoma. The log file suggests metgrid is reading, processing and writing the data fields as normal, but at the end only the dimensions, variables and global attributes are written to the met_em file. The data fields are completely blank for each time (and therefore each file). The only other issue that appears are messages about floating point exceptions (IEEE_OVErFLOW_FLAG, IEEE_UNDERFLOW_FLAG and IEEE_DENORMAL) that have been reported in posts from earlier years but without any apparent ill effects on the met_em files.
The issues appeared when I compile WPS with gcc-14.2 ,but it worked normal when I compiled with GCC early gcc-14.2
 
The issues appeared when I compile WPS with gcc-14.2 ,but it worked normal when I compiled with GCC early gcc-14.2
Did you figure the issue out? I am running into the same problem. I can successfully compile both WRF and WPS with gcc-14.2.0. When I go to run metgrid.exe, it says that it has run successfully, but it doesn't output anything into the files. The log file looks normal, but the output files are all 16KB in size. However, both ungrib.exe and geogrid.exe run perfectly fine.
 
Thank you for sharing that you are also having issues with this, @jtilley and @AKnight. This is definitely a strange issue. I'm going to share it with our software engineers to see if they have any thoughts.
 
Hi Everyone!
One of our software engineers thinks they may have found the problem and solution to this issue. It seems there was an uninitialized variable that other compilers and other versions of GNU/gcc did not detect. See this code commit and try modifying the code to incorporate this change. After you modify the code, you'll need to clean the WPS code (clean -a), reconfigure, and then recompile before trying to run metgrid again. Please let me know if this works. Thanks!
 
Top