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

Fix a bug in y_domain #10

Merged
merged 3 commits into from
Aug 2, 2024
Merged

Fix a bug in y_domain #10

merged 3 commits into from
Aug 2, 2024

Conversation

simone-silvestri
Copy link
Collaborator

@simone-silvestri simone-silvestri commented Aug 2, 2024

In the previous version I had removed @allowscalar from

y_domain(grid::TRG) = @allowscalar minimum(grid.φᶠᶠᵃ), 90

because I thought minimum(::CuArray) does not incur in scalarindexing problems.
In this way I could remove the dependency of this package on CUDA.
Apparently minimum(::OffsetArrays) does indeed incur in scalarindexing problems, so this PR reintroduces CUDA in the dependencies just because of this @allowscalar.

@simone-silvestri simone-silvestri merged commit 486636f into main Aug 2, 2024
2 checks passed
@simone-silvestri simone-silvestri deleted the ss/new_bump branch August 2, 2024 13:44
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.

1 participant