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

[Draft]: auto diff net rates #715

Draft
wants to merge 19 commits into
base: main
Choose a base branch
from
Draft

[Draft]: auto diff net rates #715

wants to merge 19 commits into from

Conversation

pmocz
Copy link
Member

@pmocz pmocz commented Aug 14, 2024

No description provided.


! here we define our new auto_diff variable for reaction rates.
!auto_diff_real_2var_order1
n% rate_screened_ad %val = n% rate_screened
Copy link
Member

Choose a reason for hiding this comment

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

@pmocz this is where we define the rate_screened and its derivates. When auto_diff is implemented into rates, we can just set one value n% rate_screened_ad %val = n% rate_screened, instead of all three calls. Then our derivatives won't be singular values for n% rate_screened_ad %d1val1, rather they will carry the entire interpolating function insiden% rate_screened_ad which can be differentiated at any moment to yield the derivative. This helps later on when these derivatives are used to calculate the derivative of the equilibrium links.

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