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

Apply zero_every to adjoint system #136

Merged
merged 4 commits into from
Nov 19, 2024
Merged

Apply zero_every to adjoint system #136

merged 4 commits into from
Nov 19, 2024

Conversation

richfitz
Copy link
Member

Turns out this is a really small change (first commit). I've tidied up the adjoint code a bit to match what we are trying to generate from odin

@@ -460,6 +461,13 @@ class dust_discrete {
internal,
adjoint_next);
std::swap(adjoint_curr, adjoint_next);
for (const auto& el : zero_every) {
Copy link
Member Author

Choose a reason for hiding this comment

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

This, and passing zero_every through (above) are the substantive changes in this PR

@richfitz richfitz marked this pull request as ready for review November 19, 2024 11:26
@weshinsley weshinsley merged commit 7bc8470 into main Nov 19, 2024
8 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.

2 participants