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

Pass the namelist variables from the dycore to the physics during the initialization #22

Merged
merged 3 commits into from
Jun 6, 2023

Conversation

linjiongzhou
Copy link
Contributor

Description
The dynamical core and physics package share some namelist variables. In the current model codebase, these namelist variables are either passed from the dynamical core to the physics package after the initialization or duplicated in the physics package. This produces a potential issue that the physics initialization does not see the dynamical core namelist and leads to errors.

Fixes # (issue)
No issue with this atmos_drivers. We need some code changes in atmos_drivers so that our update of the dynamical core and physics package will work.

How Has This Been Tested?
It was tested and the results are expected. The issue has been resolved.

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

@linjiongzhou
Copy link
Contributor Author

Hi @laurenchilutti, this merge will only work with the recent updates in the atmos_cubed_sphere and fv3_gfsphysics. Those updates are under review by @spencerkclark and @lharris4.

Copy link
Member

@spencerkclark spencerkclark left a comment

Choose a reason for hiding this comment

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

Thanks @linjiongzhou -- indeed this is very clean!

@@ -473,6 +475,10 @@ subroutine atmos_model_init (Atmos, Time_init, Time, Time_step, iau_offset)
Init_parm%xlat => Atmos%lat
Init_parm%area => Atmos%area
Init_parm%tracer_names => tracer_names
!--- setup IPD_Control
Copy link
Contributor

Choose a reason for hiding this comment

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

This is indeed very clean.

@lharris4
Copy link
Contributor

Hi,all. Did this ever get merged?

@laurenchilutti
Copy link
Contributor

No, this hasnt been merged. I plan to merge this at the same time as the public release code (which should be coming this week)

@lharris4
Copy link
Contributor

lharris4 commented May 22, 2023 via email

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