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

hotfix for ntiles in driver dycore config for doubly periodic runs #72

Merged
merged 1 commit into from
Mar 1, 2024

Conversation

oelbert
Copy link
Contributor

@oelbert oelbert commented Feb 29, 2024

Purpose

This fixes the ntiles attribute of dycore config for doubly-periodic configurations, which was always set to 6 before

Code changes:

  • driver/pace/driver/driver.py: ntiles attribute of dycore config is now set to 1 for doubly periodic grid setups

Checklist

Before submitting this PR, please make sure:

  • You have followed the coding standards guidelines established at Code Review Checklist.
  • Docstrings and type hints are added to new and updated routines, as appropriate
  • All relevant documentation has been updated or added (e.g. README, CONTRIBUTING docs)
  • For each public change and fix in pace-util, HISTORY has been updated
  • Unit tests are added or updated for non-stencil code changes

Additionally, if this PR contains code authored by new contributors:

  • The names of all the new contributors have been added to CONTRIBUTORS.md

@@ -280,6 +280,8 @@ def from_dict(cls, kwargs: Dict[str, Any]) -> "DriverConfig":
# Copy grid_type to the DycoreConfig if it's not the default value
if grid_type != 0:
kwargs["dycore_config"].grid_type = grid_type
if grid_type > 3:
Copy link

Choose a reason for hiding this comment

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

I am hoping that in the future we can use a better coding for grid type than just integers. Python's datatypes allow more flexibility than do Fortran integers.

Copy link
Collaborator

Choose a reason for hiding this comment

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

It is logged: #29

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah that's absolutely in the cards

@FlorianDeconinck FlorianDeconinck merged commit 261fa3c into NOAA-GFDL:develop Mar 1, 2024
2 checks passed
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.

3 participants