Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for invisible first_time_step bug in SHiELD #18

Merged
merged 6 commits into from
Sep 14, 2022

Conversation

lharris4
Copy link
Contributor

@lharris4 lharris4 commented May 25, 2022

Jan-Huey discovered a nasty bug in the SHiELD driver: if first_time_step is true, then physics diagnostics are written on EVERY timestep. Also, since first_time_step defaults to true, if it is not explicitly set to false, then the problem occurs too, without any indication what is happening.

Description
Jan-Huey discovered a nasty bug in the SHiELD Model driver in atmos_model.F90 . If first_time_step is true, then physics diagnostics are written on EVERY timestep. This creates far more history file output than we want.

But also, since first_time_step defaults to true, if it is not explicitly set to false, then the problem occurs too, without any indication what is happening. This creates a very obscure issue that is hard to debug.

How Has This Been Tested?
Ran a test without atmos_model_nml::first_time_step specified

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
  • New check tests, if applicable, are included

@lharris4
Copy link
Contributor Author

lharris4 commented Sep 9, 2022

Hi, all. I hadn't realized that these updates had not been merged into atmos_drivers.

@linjiongzhou @kaiyuan-cheng @janhueychen can you check over this and make sure that these changes are the right ones to avoid the bug Jan-Huey discovered?

@thomas-robinson can you approve this?

Thanks,
Lucas

@kaiyuan-cheng
Copy link

The changes are correct.

@laurenchilutti laurenchilutti merged commit 6195f02 into NOAA-GFDL:main Sep 14, 2022
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.

4 participants