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 time sum reduction to dmUpdate #1375

Merged
merged 13 commits into from
Oct 11, 2023
Merged

Conversation

rem1776
Copy link
Contributor

@rem1776 rem1776 commented Sep 22, 2023

Description
Adds time_sum reduction method and adds a test based off the other time_* reduction tests.

I think the numbers from the added check test make sense, but let me know if you see any issues. I put some comments so its easier to tell what the results end up as.

How Has This Been Tested?
Tested on amd with oneapi 2023.2

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
  • New check tests, if applicable, are included
  • make distcheck passes

Copy link
Contributor

@uramirez8707 uramirez8707 left a comment

Choose a reason for hiding this comment

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

This looks good to me

Comment on lines 244 to 258
do k = 0, ke_out - ks_out
do j = 0, je_out - js_out
do i = 0, ie_out - is_out
if (mask(is_in + i, js_in + j, ks_in + k, l + 1)) then
data_out(is_out + i, js_out + j, ks_out + k, l + 1, 1) = &
data_out(is_out + i, js_out + j, ks_out + k, l + 1, 1) &
+ data_in(is_in +i, js_in + j, ks_in + k, l + 1)
else
data_out(is_out + i, js_out + j, ks_out + k, l + 1, 1) = missing_value
endif
enddo
enddo
enddo
enddo
Copy link
Member

Choose a reason for hiding this comment

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

Can this be reduced to a where and elsewhere constuct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah that works, added in 618bb06

Copy link
Member

Choose a reason for hiding this comment

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

I hope this works

@thomas-robinson thomas-robinson merged commit c04e921 into NOAA-GFDL:dmUpdate Oct 11, 2023
16 of 18 checks passed
rem1776 added a commit to rem1776/FMS that referenced this pull request May 1, 2024
rem1776 added a commit to rem1776/FMS that referenced this pull request May 1, 2024
rem1776 added a commit to rem1776/FMS that referenced this pull request May 1, 2024
rem1776 added a commit to rem1776/FMS that referenced this pull request May 1, 2024
rem1776 added a commit to rem1776/FMS that referenced this pull request May 1, 2024
rem1776 added a commit to rem1776/FMS that referenced this pull request May 1, 2024
rem1776 added a commit to rem1776/FMS that referenced this pull request May 1, 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

Successfully merging this pull request may close these issues.

3 participants