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

v1.6.3.18 style: minor typo revision, code indented and comment removed in PE_Oudin

parent e3b33142
Pipeline #16702 passed with stages
in 11 minutes and 23 seconds
Package: airGR
Type: Package
Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling
Version: 1.6.3.17
Date: 2020-10-15
Version: 1.6.3.18
Date: 2020-10-16
Authors@R: c(
person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")),
person("Olivier", "Delaigue", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-7668-8468"), email = "airGR@inrae.fr"),
......
......@@ -2,7 +2,7 @@
### 1.6.3.17 Release Notes (2020-10-15)
### 1.6.3.18 Release Notes (2020-10-16)
#### New features
......
......@@ -6,12 +6,6 @@ PE_Oudin <- function(JD, Temp,
## ---------- check arguments
# if (!missing(LatRad)) {
# warning("Deprecated 'LatRad' argument. Please, use 'Lat' instead.")
# if (missing(Lat)) {
# Lat <- LatRad
# }
# }
if (!(inherits(JD, "numeric") | inherits(JD, "integer"))) {
stop("'JD' must be of class 'numeric'")
}
......@@ -21,7 +15,6 @@ PE_Oudin <- function(JD, Temp,
if (length(JD) != length(Temp)) {
stop("'JD' and 'Temp' must have the same length")
}
if (!RunFortran & (!inherits(Lat, "numeric") | length(Lat) != 1)) {
stop("'Lat' must be a 'numeric' of length one")
}
......@@ -67,8 +60,7 @@ PE_Oudin <- function(JD, Temp,
## ---------- Oudin's formula
if (RunFortran)
{
if (RunFortran) {
if (LatUnit[1L] == "rad") {
Lat = Lat * 180 / pi
}
......@@ -79,7 +71,7 @@ PE_Oudin <- function(JD, Temp,
Lat = rep(Lat, LInputs)
}
RESULTS <- .Fortran("frun_etp_oudin", PACKAGE="airGR",
RESULTS <- .Fortran("frun_etp_oudin", PACKAGE = "airGR",
##inputs
LInputs = LInputs,
InputsLAT = as.double(Lat),
......
Markdown is supported
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