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

Add cast to int capacity to gt4py #58

Open
1 task
FlorianDeconinck opened this issue Aug 19, 2024 · 1 comment
Open
1 task

Add cast to int capacity to gt4py #58

FlorianDeconinck opened this issue Aug 19, 2024 · 1 comment
Assignees

Comments

@FlorianDeconinck
Copy link
Collaborator

A lot of physics code have this pattern

[some calculation to Float  field X]
index = nint(X)
v = other_field[index]

We have no cast to int in gt4py, which means breaking into two stencils. Fix that.

Parent: GEOS-ESM/SMT-Nebulae#36


  • int(X) operation is allowed in gt4py
@FlorianDeconinck
Copy link
Collaborator Author

FlorianDeconinck commented Aug 19, 2024

Working prototype at: https://github.com/FlorianDeconinck/gt4py/tree/cartesian/cast_to_int

Issues:

@FlorianDeconinck FlorianDeconinck self-assigned this Oct 31, 2024
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