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 the 3-way bridge for Fortran/Python interfacing from a single yaml #78

Open
2 tasks
FlorianDeconinck opened this issue May 30, 2024 · 0 comments
Open
2 tasks

Comments

@FlorianDeconinck
Copy link
Collaborator

We need to be able to generate interfaces between Fortran and Python easily and update them as easily.

Code in tcn broke the ground on this work. THe idea is as follows:

  • Define a yaml which defines the signature of the function call that will link everything
  • Code generate the 3-way files (Fn, C, Py)
  • Create a hook on Python side (wrapper) with pre-filled "translate" functions to adapt further.

When ready, commit the yaml in the python subfolder of FVDycoreComp so we have a complex example saved.

Parent: #44


  • 3-way generator is implemented and unit tested
  • FVDycoreGridComp carries a complex example that allows for updating easily the dycore bridge
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

No branches or pull requests

1 participant