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

Python binding ectrans4py #205

Open
wants to merge 23 commits into
base: develop
Choose a base branch
from

Conversation

AlexandreMary
Copy link
Contributor

@AlexandreMary AlexandreMary commented Jan 28, 2025

This branch, based on PRs #203 and #204, introduces the Python binding ectrans4py.

This is a Python interface to some ectrans functions, mainly the necessary routines to be able to:

  • transform a spectral field into gridpoint
  • transform a gridpoint field into spectral
  • compute gridpoint derivatives of a field in spectral space

both for global and LAM fields.

It uses ctypesForFortran Python package for the Fortran<>Python interface.

Note: version number is duplicated in src/ectrans4py/__init__.py for now, until better solution.
Replaces PR #199

AlexandreMary and others added 23 commits January 28, 2025 14:26
…ate (trans, etrans, biper); only single include directory
…ans/cpu/; (ii) create separate ectrans_etrans_* libraries instead of patching ectrans_* libraries; (iii) re-introduced FFT992, but put it under a switch WITH_FFT992 everywhere; compiling/running with FFT992 instead of FFTW is probably still broken; (iv) temporarily added ellips.F90, which in fact should go into fiat.
Commit 8622da1 changed D%NSTAGTF from
JPIM to JPIB.
@AlexandreMary
Copy link
Contributor Author

@samhatfield I guess I'd need to re-rebase this (commits 8f57c77 to b900eed) on top of #203 or even develop when you're done ?

@samhatfield
Copy link
Collaborator

Yes exactly! :) Then you can just force push to your repo and the PR will update itself.

@AlexandreMary
Copy link
Contributor Author

OK I wait for 203 to be merged in develop then.

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.

5 participants