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

Atmospheric CO2 driver not vectorized #3

Closed
arthur-e opened this issue Jan 28, 2021 · 1 comment
Closed

Atmospheric CO2 driver not vectorized #3

arthur-e opened this issue Jan 28, 2021 · 1 comment

Comments

@arthur-e
Copy link

Unlike other inputs, if a sequence of CO2 values is provided, only the first value is used.

Expected behavior (this is what currently happens with, e.g., a VPD sweep):

> rpmodel( tc = 25, vpd = seq(500, 3000, 500), co2 = 400, fapar = 1, ppfd = 10, elv = 0, do_soilmstress = FALSE, do_ftemp_kphio = FALSE)$gpp
[1] 2.224166 2.115682 2.035845 1.970669 1.914766 1.865385

Actual behavior (when a CO2 sweep is used instead):

> rpmodel( tc = 25, vpd = 500, co2 = seq(350, 400, 10), fapar = 1, ppfd = 10, elv = 0, do_soilmstress = FALSE, do_ftemp_kphio = FALSE)$gpp
[1] 2.027605
@stineb
Copy link
Collaborator

stineb commented Jan 29, 2021

Dear Arthur,
Thanks a lot for pointing this out.
I've looked into it and propose a bugfix as released by this here. Please get the latest version of the package through github (git pull) and check if this now runs without further issues.
Thanks
beni

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

2 participants