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

Fix: correct area of intermediate basin passed to lag model

Refs #2
Showing with 7 additions and 1 deletion
+7 -1
......@@ -79,7 +79,13 @@ SetAirGrInputsAndOptions <- function(id, ginet, girop, gits, OutputsModels, IndP
}
}
LengthHydro <- matrix(ginet$length[girop$id %in% UpstrNodes] , nrow = 1)
BasinAreas <- matrix(c(girop$area[girop$id %in% UpstrNodes], girop$area[girop$id == id]) , nrow = 1)
BasinAreas <- matrix(
c(
girop$area[girop$id %in% UpstrNodes],
girop$area[girop$id == id] - sum(girop$area[girop$id %in% UpstrNodes])
),
nrow = 1
)
}
# Set model inputs
InputsModel <- CreateInputsModel(
......
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