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

Unable to compile WRF-Chem V4.7.1

jbseth

New member
Good afternoon,

My lab mates and I have shifted to the latest version of WRF-Chem, which is 4.7.1. We have been trying to compile this model, but we are all getting the same error.

The error message occurs when trying to compile module_phot_tuv. It reads:

Code:
module_phot_tuv.f90(675): error #6609: A case-selector exists without a preceding SELECT CASE statement.     
case( mozart_mosaic_4bin_aq_kpp )
-----^
compilation aborted for module_phot_tuv.f90 (code 1)

The module_phot_tuv.f90 file is generated when you compile WRF-Chem; in looking at this .f90 file, it becomes apparent that there is a typo in the file. Line 648 SHOULD contain
Code:
select case ( config_flags%chem_opt )
, but for some reason, that line isn't being produced, even though the module_phot_tuv.F's corresponding code has a line that says "
Code:
select case ( n ).
" When we compared 4.7.1 to a successfully compiled older version of WRF-Chem (V3.9.1), we found that the module_phot_tuv.F code was exactly the same as V4.7.1 in the section where we were getting the error. Yet 3.9.1 had the select case ( config_flags%chem_opt ) in its module_phot_tuv.f90. We are truly at a loss as to why this is happening. Our best guess is that in V4.7.1, something is going wrong in the interim .G and .bb files that are produced before the .f90 and .o files, but we don't know what.

I tried compiling V4.7.0 of WRF-Chem as well to see if the error persists into older versions, and I found that I was indeed getting this error in V4.7.0. This error did not appear when I tried compiling V4.6.1, which would imply that this issue is occurring with the newest versions of WRF-Chem.

Has anyone else run into this issue? We are not sure how to fix this problem.

Thank you!
 

Attachments

  • module_phot_tuv.f90_3.9.1.png
    module_phot_tuv.f90_3.9.1.png
    27.8 KB · Views: 1
  • module_phot_tuv.F_3.9.1.png
    module_phot_tuv.F_3.9.1.png
    49 KB · Views: 1
  • module_phot_tuv.f90_4.7.1.png
    module_phot_tuv.f90_4.7.1.png
    29.7 KB · Views: 1
  • module_phot_tuv.F_4.7.1.png
    module_phot_tuv.F_4.7.1.png
    49.1 KB · Views: 1
  • 4.7.1_log.compile.txt
    2.2 MB · Views: 1
Top