Remove incorrect single_column logic#679
Open
billsacks wants to merge 1 commit into
Open
Conversation
This logic was incorrect, I think leading to mesh_mask sometimes being set to null when it shouldn't have been. Based on Mariana's analysis of the CESM code, it seems like this didn't cause any incorrect behavior, but it was confusing and unnecessary. So we decided to simply remove this unnecessary logic. Resolves ESCOMP#676
Member
Author
|
@ekluzek and @jtruesdal - I have run pretty extensive testing on this (see testing description in the top-level comment) so feel pretty good about it, but let me know if you want to review this or do some additional testing before it's merged. In particular, the only single-column tests I could find with CAM were: @jtruesdal - should any other testing be run on CAM single-column? |
Contributor
|
@billsacks running IOP testing as well as a bfb coupled test with land this afternoon for CMEPS and CDEPS changes. |
ekluzek
approved these changes
Jul 17, 2026
ekluzek
left a comment
Collaborator
There was a problem hiding this comment.
This just removes the uneeded references to single_column, and the testing shows that it works fine. So approving.
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.
Description of changes
This logic was incorrect, I think leading to mesh_mask sometimes being set to null when it shouldn't have been.
Based on Mariana's analysis of the CESM code, it seems like this didn't cause any incorrect behavior, but it was confusing and unnecessary. So we decided to simply remove this unnecessary logic.
Resolves #676
Specific notes
Contributors other than yourself, if any: @mvertens
CMEPS Issues Fixed (include github issue #):
Are changes expected to change answers? (specify if bfb, different at roundoff, more substantial) bfb
Any User Interface Changes (namelist or namelist defaults changes)? mesh_mask is left at its original value rather than being set to null for single point / single-column cases
Testing performed
Ran testing on these changes along with CDEPS changes to fix single-column logic (ESCOMP/CDEPS#422). The following test results describe the results from testing these two changes together; note that the changes in dimension sizes referenced below come from the CDEPS changes.
Ran the following, all with baseline comparisons:
(1) aux_cdeps
(2) aux_cime_baselines
(3) The two tests from the test_scam test list (but moved to derecho):
(4) A G compset test (since G compsets weren't covered in the other testing):
(5) A selection of single-point tests from aux_clm - the derecho tests suggested in #676 (comment) (not the izumi tests from there, though):
All tests passed (other than expected failures) and were bit-for-bit.
SMS_Ln9_P1.T42_T42.2000_DATM%QIA_SLND_SICE_DOCN%DOM_SROF_SGLC_SWAV.derecho_intel.datm-scamhas different dimension sizes in the cpl hist file (as expected), but when I used ncks to extract just point 1 from the baseline cpl hist file, it's bit-for-bit.For the two SCP tests, in the baseline, I subset the ocn dimensions to take just the first point (keeping the atm dimensions as is because there is apparently still an issue in nx/ny on the atm side when running with CAM), and then compared the atm & cpl files from case2 against baseline (since these aren't normally compared, and these are the important single-column files); these were bit-for-bit.
Differences in NLCOMP (all expected):
SMS_Ld5_P1.1x1_mexicocityMEX.2000_DATM%1PT_SLND_SICE_SOCN_SROF_SGLC_SWAV_SESP.derecho_intel.datm-1PThas mesh_mask UNSET instead of nullSMS_Ln9_P1.T42_T42.2000_DATM%QIA_SLND_SICE_DOCN%DOM_SROF_SGLC_SWAV.derecho_intel.datm-scamhas mesh_mask set to a file rather than null; and for both docn_nml and datm_nml, model_maskfile and model_meshfile are now null rather than set, and nx_global and ny_global are 1 rather than 128/64SCT_D_Ln7.ne3_ne3_mg37.QPC6.derecho_intel.cam-scm_prep_c6andSCT_D_Ln7.ne3_ne3_mg37.QPC5.derecho_intel.cam-scm_prep: case2 has diffs: mesh_mask now set to a file instead of null; docn_in has model_meshfile null instnead of a file, and nx_global 1 instead of 488Hashes used for testing: ctsm5.4.047 for the selected tests from aux_clm; cesm3_0_alpha09d for others