Commit 3aab6e02 authored by Dorchies David's avatar Dorchies David
Browse files

fix: breaking change in airGR

- CreateInputsModel LengthHydro and BasinAreas parameters should now be vectors instead of matrices
Showing with 2 additions and 5 deletions
+2 -5
......@@ -58,13 +58,10 @@ CreateOneGriwrmInputsModel <- function(id, ginet, girop, gits) {
Qupstream <- cbind(Qupstream, Qupstream1)
}
}
LengthHydro <- matrix(ginet$length[girop$id %in% UpstreamNodes] , nrow = 1)
BasinAreas <- matrix(
c(
LengthHydro <- ginet$length[girop$id %in% UpstreamNodes]
BasinAreas <- c(
girop$area[girop$id %in% UpstreamNodes],
girop$area[girop$id == id] - sum(girop$area[girop$id %in% UpstreamNodes])
),
nrow = 1
)
}
......
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