Commit c5dd9671 authored by Delaigue Olivier's avatar Delaigue Olivier
Browse files

refactor: use the number of day by a year accordinf to the complete leap cycle of 400 years

- 365.2425 days
Showing with 2 additions and 2 deletions
+2 -2
...@@ -387,10 +387,10 @@ CreateRunOptions <- function(FUN_MOD, InputsModel, ...@@ -387,10 +387,10 @@ CreateRunOptions <- function(FUN_MOD, InputsModel,
} }
Factor <- NULL Factor <- NULL
if (inherits(InputsModel, "hourly")) { if (inherits(InputsModel, "hourly")) {
Factor <- 365.25 * 24 Factor <- 365.2425 * 24
} }
if (inherits(InputsModel, "daily")) { if (inherits(InputsModel, "daily")) {
Factor <- 365.25 Factor <- 365.2425
} }
if (inherits(InputsModel, "monthly")) { if (inherits(InputsModel, "monthly")) {
Factor <- 12 Factor <- 12
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment