-
Notifications
You must be signed in to change notification settings - Fork 28
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
base: master
Are you sure you want to change the base?
Conversation
As mentioned above this PR depends on PR #2048 being on master before it can proceed. |
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. |
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. |
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 inkernel_interface.py
but uses the new metadata and will be complete, so will replace this code. It will also replace the existingkern_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 ingen_kernel_stub.py
.