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

Enzyme returning zero derivative #2320

Closed
swilliamson7 opened this issue Feb 27, 2025 · 1 comment
Closed

Enzyme returning zero derivative #2320

swilliamson7 opened this issue Feb 27, 2025 · 1 comment

Comments

@swilliamson7
Copy link
Collaborator

I am not sure if this is me setting up the problem wrong or what, but I'm getting a zero derivative when I shouldn't be. The script to run is here: https://github.com/swilliamson7/data_assimilation_2/blob/main/barotropic_gyre/zero_derivative_error.jl, it's mainly just ShallowWaters.jl code. At the end I check dS.constants.cD, which should be the derivative with respect to a coefficient that appears in the model equations, and see that this is zero. However, it directly is used to compute the output of my integration S.Prog.u[25, 25] (this is just a random entry in the field, the actual choice shouldn't matter), so I really don't think the derivative should be appearing as zero. Any help/advice would be much appreciated!

@swilliamson7
Copy link
Collaborator Author

Whoops, found my mistake! Closing now

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

No branches or pull requests

1 participant