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

Inequality in a_j == a_c calculation when iabs == 0 #12

Open
davidorme opened this issue Jun 17, 2021 · 0 comments
Open

Inequality in a_j == a_c calculation when iabs == 0 #12

davidorme opened this issue Jun 17, 2021 · 0 comments

Comments

@davidorme
Copy link
Contributor

davidorme commented Jun 17, 2021

Hi,

Connected to #11, one way you get a mismatch between a_j and a_c is when iabs is zero.

a_j

fact_jmaxlim <- vcmax * (ci + 2 * gammastar)/(kphio * iabs * (ci + kmm))
a_j <- kphio * iabs * (ci - gammastar)/(ci + 2 * gammastar) * fact_jmaxlim

Because fact_jmaxlim has vcmax in the numerator and iabs in the denominator, this gives 0/0 and hence both it and a_j are NaN when iabs is zero.

a_c

In contrast:

a_c <- vcmax * (ci - gammastar)/(ci + kmm)

Here iabs only features in numerator via vcmax and so is 0/real = 0.

In practice, I guess the equation for a_j should be set to zero when there is no photosynthetically active light, and that needs to be trapped to allow the test in #11 to work correctly.

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