From c5dd9671553a4150227fb23623436b8b140ae5c9 Mon Sep 17 00:00:00 2001 From: Delaigue Olivier <olivier.delaigue@irstea.fr> Date: Mon, 29 Mar 2021 14:59:10 +0200 Subject: [PATCH] refactor: use the number of day by a year accordinf to the complete leap cycle of 400 years - 365.2425 days --- R/CreateRunOptions.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/CreateRunOptions.R b/R/CreateRunOptions.R index 4edbdd71..dfdedfc7 100644 --- a/R/CreateRunOptions.R +++ b/R/CreateRunOptions.R @@ -387,10 +387,10 @@ CreateRunOptions <- function(FUN_MOD, InputsModel, } Factor <- NULL if (inherits(InputsModel, "hourly")) { - Factor <- 365.25 * 24 + Factor <- 365.2425 * 24 } if (inherits(InputsModel, "daily")) { - Factor <- 365.25 + Factor <- 365.2425 } if (inherits(InputsModel, "monthly")) { Factor <- 12 -- GitLab