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

revert argument changes for xgrid #1415

Closed
wants to merge 1 commit into from

Conversation

rem1776
Copy link
Contributor

@rem1776 rem1776 commented Nov 20, 2023

Description
The data argument was changed as part of #1355, but this broke some of the coupler code (and likely other components). This reverts the xgrid changes to arguments.

How Has This Been Tested?
make check on amd, ci

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
  • make distcheck passes

@thomas-robinson
Copy link
Member

Let's keep this open while we assess how much work it will be to update coupler and the components. I would rather have good code with good coding practice than revert back to the old coding standards.

Copy link
Contributor

@bensonr bensonr left a comment

Choose a reason for hiding this comment

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

Was there an issue with testing requiring these to be reverted? I can see us having to do it for optionals, but why would it affect required arguments?

@rem1776
Copy link
Contributor Author

rem1776 commented Nov 20, 2023

Was there an issue with testing requiring these to be reverted? I can see us having to do it for optionals, but why would it affect required arguments?

You can specify the argument name for required arguments as well, its just not as common, so it ends up being the same issue as the optional arguments.

@bensonr
Copy link
Contributor

bensonr commented Nov 21, 2023

@rem1776 - much of this could become obsolete if the stock integration/calculations are removed as part of the coupler refactor project. I'll be taking some of that discussion to the appropriate body within GFDL.

@rem1776
Copy link
Contributor Author

rem1776 commented Nov 21, 2023

@rem1776 - much of this could become obsolete if the stock integration/calculations are removed as part of the coupler refactor project. I'll be taking some of that discussion to the appropriate body within GFDL.

We made the change in the coupler to fix this so I'll close this one. I think that works out better cause then these calls can just be removed as part of the refactor project.

@rem1776 rem1776 closed this Nov 21, 2023
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