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

v1.2.7.6 CLEAN: move code out of the loop on the layers

Showing with 12 additions and 3 deletions
+12 -3
Package: airGR
Type: Package
Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling
Version: 1.2.7.5
Version: 1.2.7.6
Date: 2019-03-04
Authors@R: c(
person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")),
......
......@@ -13,7 +13,7 @@ output:
### 1.2.7.5 Release Notes (2019-03-04)
### 1.2.7.6 Release Notes (2019-03-04)
......@@ -58,6 +58,8 @@ output:
- Outputs of frun_GR2M Fortran subroutine were reordered.
- <code>DataAltiExtrapolation_Valery()</code> now returns named elements of lists relative to elevation layer
____________________________________________________________________________________
......
......@@ -527,7 +527,14 @@ DataAltiExtrapolation_Valery <- function(DatesR,
}
LayerFracSolidPrecip[[iLayer]] <- as.double(SolidFraction)
}
namesLayer <- sprintf("L%i", seq_along(LayerPrecip))
names(LayerPrecip) <- namesLayer
names(LayerTempMean) <- namesLayer
if (!is.null(TempMin) & !is.null(TempMax)) {
names(LayerTempMin) <- namesLayer
names(LayerTempMax) <- namesLayer
}
names(LayerFracSolidPrecip) <- namesLayer
......
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