-
Notifications
You must be signed in to change notification settings - Fork 39
Purge Intermediate Api access to configuration object from in favor of new config_type object #262
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
base: main
Are you sure you want to change the base?
Conversation
…mentation refers to.
Co-authored-by: Matthew Hambley <[email protected]>
Co-authored-by: Matthew Hambley <[email protected]>
…f90.jinja Co-authored-by: Matthew Hambley <[email protected]>
…f90.jinja Co-authored-by: Matthew Hambley <[email protected]>
Co-authored-by: Matthew Hambley <[email protected]>
MatthewHambley
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Presumed code owner's review, although I'm not sure which code.
Everything here looks fine. I like the fact that on average more lines are being removed than added which suggests the original goal of simplifying configuration is being achieved.
I've left a comment for the eventual code reviewer to consider and have one question here:
Why are we choosing to forgo whole English words by replacing configuration with config for arguments? We can change the type of an argument without changing its name.
| ! if ( geometry == geometry_spherical .and. & | ||
| ! topology == topology_fully_periodic) then | ||
| ! stretch_factor = get_stretch_factor() | ||
| ! else | ||
| ! stretch_factor = 1.0_r_def | ||
| ! end if | ||
|
|
||
| ! inverse_rot_matrix = get_inverse_mesh_rotation_matrix() | ||
| ! to_rotate = get_to_rotate() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding commented out code?
PR Summary
Sci/Tech Reviewer: N/A
Code Reviewer:
This ticket purges lfric_core of instance of the intermediate api to configuration namelists. Previously this was via at namelist_collection_type generally initialised and located as a member of the modeldb_type from driver_modeldb_mod. Following the commit of PR#175, templating and infrastructure for config_type was put in place on lfric_core, but only so that PR#175 would remain a non-linked PR change.
This PR removes the remaining initialisation and usage of the namelist_collection_type (configuration) from lfric_core. This however will require linked changes to lfric_apps. Changes to lfric_apps have been limited to only allow it to work with this lfric_core purge.
Linked PR
Code Quality Checklist
Testing
Security Considerations
Performance Impact
AI Assistance and Attribution
No AI was used on this change
Documentation
N/A
PSyclone Approval
N/A
Sci/Tech Review
N/A
This is a technical change only and doesn't need a SciTech, however code owners may wish to comment if there are issues.
Code Review