Move nswbands, nlwbands to host namelist; initialize number concentration species in initialize_constituents#384
Merged
Conversation
nusbaume
approved these changes
Apr 24, 2026
Collaborator
nusbaume
left a comment
There was a problem hiding this comment.
Thanks @jimmielin! I have a couple nit-picky requests, but nothing is critical.
Comment on lines
+59
to
+63
| (/'mass_number_concentration_of_cloud_liquid_wrt_moist_air_and_condensed_water', & | ||
| 'mass_number_concentration_of_rain_wrt_moist_air_and_condensed_water ', & | ||
| 'mass_number_concentration_of_ice_wrt_moist_air_and_condensed_water ', & | ||
| 'mass_number_concentration_of_snow_wrt_moist_air_and_condensed_water ', & | ||
| 'mass_number_concentration_of_graupel_wrt_moist_air_and_condensed_water '/) |
Collaborator
There was a problem hiding this comment.
Total nit-pick, but I think for modern (2003) Fortran square brackets are recommended for parameter arrays:
Suggested change
| (/'mass_number_concentration_of_cloud_liquid_wrt_moist_air_and_condensed_water', & | |
| 'mass_number_concentration_of_rain_wrt_moist_air_and_condensed_water ', & | |
| 'mass_number_concentration_of_ice_wrt_moist_air_and_condensed_water ', & | |
| 'mass_number_concentration_of_snow_wrt_moist_air_and_condensed_water ', & | |
| 'mass_number_concentration_of_graupel_wrt_moist_air_and_condensed_water '/) | |
| ['mass_number_concentration_of_cloud_liquid_wrt_moist_air_and_condensed_water', & | |
| 'mass_number_concentration_of_rain_wrt_moist_air_and_condensed_water ', & | |
| 'mass_number_concentration_of_ice_wrt_moist_air_and_condensed_water ', & | |
| 'mass_number_concentration_of_snow_wrt_moist_air_and_condensed_water ', & | |
| 'mass_number_concentration_of_graupel_wrt_moist_air_and_condensed_water '] |
The same request holds for the other declared parameter arrays above as well.
| errmsg = errmsg) | ||
| else | ||
| ! For chemistry species some special handling is necessary for qmin_value; | ||
| ! this logic is replicated from chem_register in src/chemistry/mozart. |
Collaborator
There was a problem hiding this comment.
I would make it clear that this is in reference to CAM:
Suggested change
| ! this logic is replicated from chem_register in src/chemistry/mozart. | |
| ! this logic is replicated from chem_register in src/chemistry/mozart in CAM. |
peverwhee
approved these changes
Apr 24, 2026
jimmielin
added a commit
to ESCOMP/CAM-SIMA
that referenced
this pull request
Apr 25, 2026
…hys update) (#493) Tag name (required for release branches): Originator(s): @jimmielin AI tools used (if applicable; please also add the "AI-generated code" label to the PR): What: How: Description (include the issue title, and the keyword ['closes', 'fixes', 'resolves'] followed by the issue number): - Moves nswbands, nlwbands from atmos_phys side rrtmgp_pre_namelist.xml to host-side: companion PR ESCOMP/atmospheric_physics#384 Describe any changes made to build system: Describe any changes made to the namelist: add nswbands, nlwbands to radiation_nl. List any changes to the defaults for the input datasets (e.g. boundary datasets): List all files eliminated and why: List all files added and what they do: List all existing files that have been modified, and describe the changes: (Helpful git command: `git diff --name-status development...<your_branch_name>`) ``` M cime_config/namelist_definition_cam.xml M src/physics/utils/radiation_namelist.F90 M src/physics/utils/radiation_namelist.meta - add nswbands, nlwbands (previously in rrtmgp_pre_namelist.xml in atmos_phys) ``` If there are new failures (compared to the `test/existing-test-failures.txt` file), have them OK'd by the gatekeeper, note them here, and add them to the file. If there are baseline differences, include the test and the reason for the diff. What is the nature of the change? Roundoff? derecho/intel/aux_sima: ``` SMS_Ln9.ne3pg3_ne3pg3_mg37.FKESSLER.derecho_intel.cam-outfrq_se_cslam_multitape (Overall: NLFAIL) details: FAIL SMS_Ln9.ne3pg3_ne3pg3_mg37.FKESSLER.derecho_intel.cam-outfrq_se_cslam_multitape NLCOMP - pre-existing failure SMS_D_Ln9.mpasa120_mpasa120.QPC4.derecho_intel.cam-outfrq_analy_ic_cam4 (Overall: NLFAIL) details: SMS_Ln9.mpasa120_mpasa120.QPC4.derecho_intel.cam-outfrq_analy_ic_cam4 (Overall: NLFAIL) details: SMS_Ln9.mpasa480_mpasa480.FKESSLER.derecho_intel.cam-outfrq_kessler_mpas_derecho (Overall: NLFAIL) details: SMS_Ln9.ne3pg3_ne3pg3_mg37.FADIAB.derecho_intel.cam-outfrq_se_cslam (Overall: NLFAIL) details: SMS_Ln9.ne3pg3_ne3pg3_mg37.FCAM7.derecho_intel.cam-outfrq_se_cslam_analy_ic (Overall: NLFAIL) details: SMS_Ln9.ne3pg3_ne3pg3_mg37.FHS94.derecho_intel.cam-outfrq_se_cslam (Overall: NLFAIL) details: SMS_Ln9.ne3pg3_ne3pg3_mg37.FKESSLER.derecho_intel.cam-outfrq_se_cslam (Overall: NLFAIL) details: SMS_Ln9.ne3pg3_ne3pg3_mg37.FKESSLER.derecho_intel.cam-outfrq_se_cslam_multitape (Overall: NLFAIL) details: SMS_Ln9.ne3pg3_ne3pg3_mg37.FTJ16.derecho_intel.cam-outfrq_se_cslam (Overall: NLFAIL) details: - expected NLFAIL: update to nswbands, nlwbands Differences in namelist 'radiation_nl': found extra variable: 'nlwbands' found extra variable: 'nswbands' ``` derecho/gnu/aux_sima: ``` SMS_Ln9.ne3pg3_ne3pg3_mg37.FADIAB.derecho_gnu.cam-outfrq_se_cslam (Overall: FAIL) details: FAIL SMS_Ln9.ne3pg3_ne3pg3_mg37.FADIAB.derecho_gnu.cam-outfrq_se_cslam NLCOMP FAIL SMS_Ln9.ne3pg3_ne3pg3_mg37.FADIAB.derecho_gnu.cam-outfrq_se_cslam RUN time=15 - pre-existing failure SMS_D_Ln9.mpasa120_mpasa120.QPC4.derecho_gnu.cam-outfrq_analy_ic_cam4 (Overall: NLFAIL) details: SMS_Ln2.ne3pg3_ne3pg3_mg37.FPHYStest.derecho_gnu.cam-outfrq_dme_adjust_derecho (Overall: NLFAIL) details: SMS_Ln2.ne3pg3_ne3pg3_mg37.FPHYStest.derecho_gnu.cam-outfrq_gw_cam4_derecho (Overall: NLFAIL) details: SMS_Ln2.ne3pg3_ne3pg3_mg37.FPHYStest.derecho_gnu.cam-outfrq_gw_cam7_derecho (Overall: NLFAIL) details: SMS_Ln2.ne3pg3_ne3pg3_mg37.FPHYStest.derecho_gnu.cam-outfrq_hack_shallow_derecho (Overall: NLFAIL) details: SMS_Ln2.ne3pg3_ne3pg3_mg37.FPHYStest.derecho_gnu.cam-outfrq_hb_vdiff_derecho (Overall: NLFAIL) details: SMS_Ln2.ne3pg3_ne3pg3_mg37.FPHYStest.derecho_gnu.cam-outfrq_held_suarez_derecho (Overall: NLFAIL) details: SMS_Ln2.ne3pg3_ne3pg3_mg37.FPHYStest.derecho_gnu.cam-outfrq_kessler_derecho (Overall: NLFAIL) details: SMS_Ln2.ne3pg3_ne3pg3_mg37.FPHYStest.derecho_gnu.cam-outfrq_rk_stratiform_derecho (Overall: NLFAIL) details: SMS_Ln2.ne3pg3_ne3pg3_mg37.FPHYStest.derecho_gnu.cam-outfrq_rrtmgp_derecho (Overall: NLFAIL) details: SMS_Ln2.ne3pg3_ne3pg3_mg37.FPHYStest.derecho_gnu.cam-outfrq_tj2016_after_coupler_derecho (Overall: NLFAIL) details: SMS_Ln2.ne3pg3_ne3pg3_mg37.FPHYStest.derecho_gnu.cam-outfrq_tj2016_before_coupler_derecho (Overall: NLFAIL) details: SMS_Ln2.ne3pg3_ne3pg3_mg37.FPHYStest.derecho_gnu.cam-outfrq_trcdata_bam_derecho (Overall: NLFAIL) details: SMS_Ln2.ne3pg3_ne3pg3_mg37.FPHYStest.derecho_gnu.cam-outfrq_zm_derecho (Overall: NLFAIL) details: SMS_Ln9.mpasa120_mpasa120.QPC4.derecho_gnu.cam-outfrq_analy_ic_cam4 (Overall: NLFAIL) details: SMS_Ln9.mpasa480_mpasa480.FKESSLER.derecho_gnu.cam-outfrq_kessler_mpas_derecho (Overall: NLFAIL) details: SMS_Ln9.ne3pg3_ne3pg3_mg37.FADIAB.derecho_gnu.cam-outfrq_se_cslam (Overall: FAIL) details: SMS_Ln9.ne3pg3_ne3pg3_mg37.FCAM7.derecho_gnu.cam-outfrq_se_cslam_analy_ic (Overall: NLFAIL) details: SMS_Ln9.ne3pg3_ne3pg3_mg37.FHS94.derecho_gnu.cam-outfrq_se_cslam (Overall: NLFAIL) details: SMS_Ln9.ne3pg3_ne3pg3_mg37.FKESSLER.derecho_gnu.cam-outfrq_se_cslam (Overall: NLFAIL) details: SMS_Ln9.ne3pg3_ne3pg3_mg37.FTJ16.derecho_gnu.cam-outfrq_se_cslam (Overall: NLFAIL) details: - expected NLFAIL due to namelist update (nswbands, nlwbands added to host) ``` derecho/nvhpc/aux_sima (test is run via Github workflow. Only run the test manually if we need to save new baselines): ``` SMS_Ln2.ne3pg3_ne3pg3_mg37.FPHYStest.derecho_nvhpc.cam-outfrq_rrtmgp_derecho_gpu (Overall: NLFAIL) details: - expected NLFAIL due to namelist update (nswbands, nlwbands added to host) ``` If this changes climate describe any run(s) done to evaluate the new climate in enough detail that it(they) could be reproduced: CAM-SIMA date used for the baseline comparison tests if different than latest:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tag name (The PR title should also include the tag name):
Originator(s): @jimmielin
Description (include issue title and the keyword ['closes', 'fixes', 'resolves'] and issue number):
nswbands,nlwbandsto host-side radiation_namelist (CAM-SIMA companion PR: sima0_13_005: Move nswbands, nlwbands to host namelist (needs atmos_phys update) CAM-SIMA#493)initialize_constituents.F90scheme.List all namelist files that were added or changed:
List all files eliminated and why:
List all files added and what they do:
List all existing files that have been modified, and describe the changes:
(Helpful git command:
git diff --name-status development...<your_branch_name>)List all automated tests that failed, as well as an explanation for why they weren't fixed:
Is this an answer-changing PR? If so, is it a new physics package, algorithm change, tuning change, etc?
If yes to the above question, describe how this code was validated with the new/modified features: