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

Create PSyIR kernel arguments from new metadata classes (closes #2078) #2079

Open
wants to merge 29 commits into
base: master
Choose a base branch
from

Conversation

rupertford
Copy link
Collaborator

This PR creates a subclass of the new metadata_to_argument_rules.py base class being implemented in PR #2048. This new subclass will create LFRic PSyIR kernel arguments. This is similar to the existing partial implementation in kernel_interface.py but uses the new metadata and will be complete, so will replace this code. It will also replace the existing kern_stub_arg_list.py which uses the old style string arguments and the old style metadata and is used when generating kernel stub code. Once complete this new class can then be used to generate kernel stub code by replacing the existing implementation in gen_kernel_stub.py.

@rupertford rupertford self-assigned this Mar 20, 2023
@rupertford
Copy link
Collaborator Author

As mentioned above this PR depends on PR #2048 being on master before it can proceed.

@rupertford rupertford added in progress LFRic Issue relates to the LFRic domain labels Apr 20, 2023
@arporter
Copy link
Member

arporter commented Jul 8, 2024

There's quite a long way to go to get the tests to pass flake8 - they're very much a WIP with variables assigned to but never used.

@arporter arporter self-assigned this Jul 8, 2024
@arporter
Copy link
Member

arporter commented Jul 9, 2024

Following what Rupert wrote in the description of this PR, I've modified gen_kernel_stub so that it uses the new functionality in this PR rather than the old, fparser1-based version. This should help me understand what this PR is doing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in progress LFRic Issue relates to the LFRic domain
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants