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

fregrid_acc - convert 2d lon/lat_vertices arrays to 1d arrays #308

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

mlee03
Copy link

@mlee03 mlee03 commented Sep 6, 2024

In this PR,

lon_vertices and lat_vertices members in the Grid_cell_struct_config struct have been changed from double pointers to single pointers and are now malloc-ed to be 1d arrays. This change has been made after testing showed that computation with 1d arrays is faster than with 2d arrays on GPUs.

Copy link

@bensonr bensonr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rem1776 rem1776 merged commit db1355b into NOAA-GFDL:main Sep 10, 2024
4 checks passed
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.

3 participants