Skip to content

Fix two bugfixes to global_cycle.sh#4327

Merged
DavidHuber-NOAA merged 8 commits intoNOAA-EMC:developfrom
ClaraDraper-NOAA:bugfix/global_cycle
Dec 18, 2025
Merged

Fix two bugfixes to global_cycle.sh#4327
DavidHuber-NOAA merged 8 commits intoNOAA-EMC:developfrom
ClaraDraper-NOAA:bugfix/global_cycle

Conversation

@ClaraDraper-NOAA
Copy link
Contributor

@ClaraDraper-NOAA ClaraDraper-NOAA commented Dec 12, 2025

Description

This PR fixes two small bugs in global_cycle.sh:

In sfc_nam namelist used by sfc_sub, set time to match the restart time, rather than the analysis time.
By default in sfc_name namelist, turn off the soil moisture relxation scheme.

resolves #4326
resolves #4325

Type of change

  • [x ] Bug fix (fixes something broken)
  • New feature (adds functionality)
  • Maintenance (code refactor, clean-up, new CI test, etc.)

Change characteristics

  • Is this change expected to change outputs (e.g. value changes to existing outputs, new files stored in COM, files removed from COM, filename changes, additions/subtractions to archives)? YES/NO (If YES, please indicate to which system(s))
    Will change values in sfcanl_data

    • GFS
    • GEFS
    • SFS
    • [NO] GCAFS
  • Is this a breaking change (a change in existing functionality)? YES/NO
    NO

  • Does this change require a documentation update? YES/NO
    NO

  • Does this change require an update to any of the following submodules? YES/NO (If YES, please add a link to any PRs that are pending.)

NO

How has this been tested?

Checklist

  • [x ] Any dependent changes have been merged and published
  • [x ] My code follows the style guidelines of this project
  • [x ] I have performed a self-review of my own code
  • [x ] I have commented my code, particularly in hard-to-understand areas
  • [x ] I have documented my code, including function, input, and output descriptions
  • [ x] My changes generate no new warnings
  • New and existing tests pass with my changes
  • [x ] This change is covered by an existing CI test or a new one has been added
  • [ x] Any new scripts have been added to the .github/CODEOWNERS file with owners
  • [ x] I have made corresponding changes to the system documentation if necessary

@ClaraDraper-NOAA ClaraDraper-NOAA marked this pull request as ready for review December 15, 2025 20:03
@ClaraDraper-NOAA
Copy link
Contributor Author

C96C48_hybatmsoilDA experiment ran on USRA. Converting from draft.

@ClaraDraper-NOAA
Copy link
Contributor Author

ClaraDraper-NOAA commented Dec 15, 2025

Also, note that this bugfix will also avoid the secondary bug described here (liquid soil moisture incorrectly set to 1 along coast lines in layers 2-4), as described here.

Copy link
Contributor

@DavidHuber-NOAA DavidHuber-NOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for this bugfix @ClaraDraper-NOAA!

@DavidHuber-NOAA DavidHuber-NOAA added the GFS Change This PR, if merged, will change results for the GFS. label Dec 16, 2025
@DavidHuber-NOAA
Copy link
Contributor

Launching tests on Hercules.

@emcbot emcbot added the CI-Hercules-Ready **CM use only** PR is ready for CI testing on Hercules label Dec 16, 2025
@emcbot emcbot added CI-Hercules-Building **Bot use only** CI testing is cloning/building on Hercules and removed CI-Hercules-Ready **CM use only** PR is ready for CI testing on Hercules labels Dec 16, 2025
@DavidHuber-NOAA DavidHuber-NOAA removed the CI-Hercules-Building **Bot use only** CI testing is cloning/building on Hercules label Dec 16, 2025
@emcbot emcbot added CI-Hercules-Ready **CM use only** PR is ready for CI testing on Hercules CI-Hercules-Building **Bot use only** CI testing is cloning/building on Hercules CI-Hercules-Running **Bot use only** CI testing on Hercules for this PR is in-progress and removed CI-Hercules-Ready **CM use only** PR is ready for CI testing on Hercules CI-Hercules-Building **Bot use only** CI testing is cloning/building on Hercules labels Dec 16, 2025
@emcbot
Copy link

emcbot commented Dec 16, 2025

C96C48mx500_S2SW_cyc_gfs FAILED on Hercules (pipeline ID: 6388)

In directory: /work2/noaa/global/role-global/GFS_CI_CD/HERCULES/BUILDS/GITLAB/pr_cases_4327_a05fd274_6388/RUNTESTS/EXPDIR/C96C48mx500_S2SW_cyc_gfs_a05fd274-6388

Error Log Files:


/work2/noaa/global/role-global/GFS_CI_CD/HERCULES/BUILDS/GITLAB/pr_cases_4327_a05fd274_6388/RUNTESTS/COMROOT/C96C48mx500_S2SW_cyc_gfs_a05fd274-6388/logs/2021122018/enkfgfs_esfc.log

View Error Logs: (enkfgfs_esfc.log)

This failure was detected automatically by global-workflow's CI/CD Pipeline

@emcbot emcbot added CI-Hercules-Failed **Bot use only** CI testing on Hercules for this PR has failed and removed CI-Hercules-Running **Bot use only** CI testing on Hercules for this PR is in-progress labels Dec 16, 2025
@emcbot
Copy link

emcbot commented Dec 16, 2025

C48mx500_hybAOWCDA FAILED on Hercules (pipeline ID: 6388)

In directory: /work2/noaa/global/role-global/GFS_CI_CD/HERCULES/BUILDS/GITLAB/pr_cases_4327_a05fd274_6388/RUNTESTS/EXPDIR/C48mx500_hybAOWCDA_a05fd274-6388

Error Log Files:


/work2/noaa/global/role-global/GFS_CI_CD/HERCULES/BUILDS/GITLAB/pr_cases_4327_a05fd274_6388/RUNTESTS/COMROOT/C48mx500_hybAOWCDA_a05fd274-6388/logs/2021032500/enkfgdas_esfc.log

View Error Logs: (enkfgdas_esfc.log)

This failure was detected automatically by global-workflow's CI/CD Pipeline

@emcbot
Copy link

emcbot commented Dec 16, 2025

C96C48_hybatmDA FAILED on Hercules (pipeline ID: 6388)

In directory: /work2/noaa/global/role-global/GFS_CI_CD/HERCULES/BUILDS/GITLAB/pr_cases_4327_a05fd274_6388/RUNTESTS/EXPDIR/C96C48_hybatmDA_a05fd274-6388

Error Log Files:


/work2/noaa/global/role-global/GFS_CI_CD/HERCULES/BUILDS/GITLAB/pr_cases_4327_a05fd274_6388/RUNTESTS/COMROOT/C96C48_hybatmDA_a05fd274-6388/logs/2021122100/enkfgdas_esfc.log

View Error Logs: (enkfgdas_esfc.log)

This failure was detected automatically by global-workflow's CI/CD Pipeline

@RussTreadon-NOAA
Copy link
Contributor

@ClaraDraper-NOAA , enkfgdas_esfc fails because gcycle_date is not defined when it is executed. dev/scripts/exglobal_enkf_sfc.sh needs to define and export gcycle_date like dev/scripts/exglobal_atmos_sfcanl.sh does.

@ClaraDraper-NOAA
Copy link
Contributor Author

@ClaraDraper-NOAA , enkfgdas_esfc fails because gcycle_date is not defined when it is executed. dev/scripts/exglobal_enkf_sfc.sh needs to define and export gcycle_date like dev/scripts/exglobal_atmos_sfcanl.sh does.

Thanks Russ. That was me being sloppy with my committing. I'm double checking it's OK now.

@DavidHuber-NOAA
Copy link
Contributor

@ClaraDraper-NOAA Let me know when this is ready for re-review and testing.

@ClaraDraper-NOAA
Copy link
Contributor Author

@ClaraDraper-NOAA Let me know when this is ready for re-review and testing.

@DavidHuber-NOAA Thanks for following-up. It's ready to re-review and testing.

@DavidHuber-NOAA
Copy link
Contributor

Launching tests on C6.

@emcbot emcbot added the CI-Gaeac6-Ready **CM use only** PR is ready for CI testing on Gaea C6 label Dec 17, 2025
@DavidHuber-NOAA DavidHuber-NOAA removed the CI-Hercules-Failed **Bot use only** CI testing on Hercules for this PR has failed label Dec 17, 2025
@emcbot emcbot added CI-Gaeac6-Building **Bot use only** CI testing is cloning/building on Gaea C6 and removed CI-Gaeac6-Ready **CM use only** PR is ready for CI testing on Gaea C6 labels Dec 17, 2025
@DavidHuber-NOAA
Copy link
Contributor

C6 builds are stalling due to a new policy on compute node builds. Cancelling C6 CI and launching on Hercules.

@DavidHuber-NOAA DavidHuber-NOAA removed the CI-Gaeac6-Building **Bot use only** CI testing is cloning/building on Gaea C6 label Dec 17, 2025
@emcbot emcbot added CI-Hercules-Ready **CM use only** PR is ready for CI testing on Hercules CI-Hercules-Building **Bot use only** CI testing is cloning/building on Hercules and removed CI-Hercules-Ready **CM use only** PR is ready for CI testing on Hercules labels Dec 17, 2025
@emcbot

This comment was marked as resolved.

@emcbot emcbot added the CI-Gaeac6-Failed **Bot use only** CI testing on Gaea C6 for this PR has failed label Dec 17, 2025
Copy link
Contributor

@CatherineThomas-NOAA CatherineThomas-NOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did not test myself, but the fixes look consistent with the identified bugs. Thanks @ClaraDraper-NOAA! Approved pending successful CI tests.

@ClaraDraper-NOAA
Copy link
Contributor Author

BUILD FAILED on Gaeac6 (pipeline ID: 6444)

In directory: /gpfs/f6/drsa-precip3/world-shared/global/CI/GITLAB/pr_cases_4327_7f875e8c_6444/global-workflow/sorc

Error log files:


[View Error Logs](File /gpfs/f6/drsa-precip3/world-shared/global/CI/GITLAB/pr_cases_4327_7f875e8c_6444/global-workflow/sorc/logs/gfs_model.log does not exist File /gpfs/f6/drsa-precip3/world-shared/global/CI/GITLAB/pr_cases_4327_7f875e8c_6444/global-workflow/sorc/logs/gefs_model.log does not exist File /gpfs/f6/drsa-precip3/world-shared/global/CI/GITLAB/pr_cases_4327_7f875e8c_6444/global-workflow/sorc/logs/sfs_model.log does not exist File /gpfs/f6/drsa-precip3/world-shared/global/CI/GITLAB/pr_cases_4327_7f875e8c_6444/global-workflow/sorc/logs/gcafs_model.log does not exist File /gpfs/f6/drsa-precip3/world-shared/global/CI/GITLAB/pr_cases_4327_7f875e8c_6444/global-workflow/sorc/logs/gsi_enkf.log does not exist File /gpfs/f6/drsa-precip3/world-shared/global/CI/GITLAB/pr_cases_4327_7f875e8c_6444/global-workflow/sorc/logs/gdas.log does not exist)

This failure was detected automatically by global-workflow's CI/CD Pipeline

This looks like it's coming from @DavidHuber-NOAA 's aborted c6 runs?

@DavidHuber-NOAA
Copy link
Contributor

@CatherineThomas-NOAA Yes, I just killed the build jobs that were stuck in the queue.

@DavidHuber-NOAA
Copy link
Contributor

Sorry, @ClaraDraper-NOAA ^^^

@emcbot emcbot added CI-Hercules-Running **Bot use only** CI testing on Hercules for this PR is in-progress CI-Hercules-Passed **Bot use only** CI testing on Hercules for this PR has completed successfully and removed CI-Hercules-Building **Bot use only** CI testing is cloning/building on Hercules CI-Hercules-Running **Bot use only** CI testing on Hercules for this PR is in-progress labels Dec 17, 2025
@DavidHuber-NOAA DavidHuber-NOAA merged commit d095c83 into NOAA-EMC:develop Dec 18, 2025
6 checks passed
JessicaMeixner-NOAA pushed a commit that referenced this pull request Dec 18, 2025
This PR corrects the
soil relaxation bug in v17 retros, resolving issue
[#](#4326)

In develop, this fix was included in a PR
[#4327](#4327) which
included an additional change to correct a long-standing error in the
time input to global_cycle. The latter change has not been tested
sufficiently for inclusion into v17 retros, so I've created this PR to
merge in only the soil relaxation change to v17.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI-Gaeac6-Failed **Bot use only** CI testing on Gaea C6 for this PR has failed CI-Hercules-Passed **Bot use only** CI testing on Hercules for this PR has completed successfully GFS Change This PR, if merged, will change results for the GFS.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Out-dated soil moisture relaxation scheme switched on Incorrect time used when calling global_cycle at the start of assim window

6 participants