-
Notifications
You must be signed in to change notification settings - Fork 137
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
Conversation
There was a problem hiding this 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
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope this works
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:
make distcheck
passes