Skip to content

Conversation

@kkeene44
Copy link
Collaborator

@kkeene44 kkeene44 commented Oct 27, 2023

TYPE: bug fix

KEYWORDS: ghg_input, radiation, module_check_a_mundo

SOURCE: internal

DESCRIPTION OF CHANGES:
Problem:
If a user had ghg_input turned on, but wasn't using one of the supported radiation physics options (i.e., not CAM, RRTM, RRTMG, or RRTMG_fast), the model would give an "ERROR" message, but wouldn't stop, nor would it make any changes to the settings. As long as everything else was correct, it would continue and write out the SUCCESS message at the end of the log files.

Solution:
Added a "count_fatal_error = count_fatal_error + 1" to the check for this in module_check_a_mundo.F.

LIST OF MODIFIED FILES:
M share/module_check_a_mundo.F

TESTS CONDUCTED:

  1. Now, if non-supported radiation options are used with ghg_input, the model stops with the following message:
    --- ERROR: ghg_input available only for these radiation schemes: CAM, RRTM, RRTMG, RRTMG_fast
    And the LW and SW schemes must be reasonably paired together:
    OK = CAM LW with CAM SW
    OK = RRTM, RRTMG LW or SW, RRTMG_fast LW or SW may be mixed
    -------------- FATAL CALLED ---------------
    FATAL CALLED FROM FILE: LINE: 2794
    NOTE: 1 namelist settings are wrong. Please check and reset these options
    -------------------------------------------

  2. Are the Jenkins tests all passing?

RELEASE NOTE: A bug fix was added to ensure the model stops when using ghg_input and a non-supported radiation physics option (i.e., anything other than CAM, RRTM, RRTMG, or RRTMG_fast).

@kkeene44 kkeene44 requested review from a team as code owners October 27, 2023 22:02
@kkeene44 kkeene44 requested a review from dudhia October 27, 2023 22:02
Corrected a mis-spelled instance of "Climate"
@kkeene44
Copy link
Collaborator Author

@dudhia @weiwangncar
Some of the tests failed here because if we have the model stop if anyone is using ghg_input and a physics scheme that doesn't work with it (e.g., goddard), it will fail. ghg_input is turned on, by default, in the registry. Is that what we want?

@dudhia
Copy link
Collaborator

dudhia commented Oct 30, 2023 via email

@kkeene44
Copy link
Collaborator Author

@dudhia
So maybe something like "if using anything other than CAM, RRTM, RRTMG, and RRTMG_fast, set ghg_input = 0" instead of stopping the model?

@dudhia
Copy link
Collaborator

dudhia commented Oct 30, 2023 via email

@weiwangncar
Copy link
Collaborator

@kkeene44 Is it possible to add ghg_input = 0 to the namelist.input file for the failed runs in regression tests?

@kkeene44
Copy link
Collaborator Author

@weiwangncar
Yes, I can do that. I spoke to Jimy offline yesterday. There was a misunderstanding because I didn't realize he was talking about the regression test. I thought he meant a different type of test in check-a-mundo.

@kkeene44
Copy link
Collaborator Author

kkeene44 commented Nov 1, 2023

@weiwangncar
I've made the changes to the namelists in the regression tests. Is there a way to manually resubmit the Jenkins tests without having to modify a file?

@dudhia
Copy link
Collaborator

dudhia commented Nov 1, 2023 via email

@weiwangncar
Copy link
Collaborator

@kkeene44 Unfortunately you cannot start a new test without changing the code. README files do not count.

@kkeene44
Copy link
Collaborator Author

kkeene44 commented Nov 9, 2023

Closing and opening a different PR #1936 so that reg tests will run.

@kkeene44 kkeene44 closed this Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants