Skip to content

Commit 7fb6b70

Browse files
Fix typo in run_node!() example
1 parent 6a2654e commit 7fb6b70

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ through all relevant nodes upstream.
254254
timesteps = sim_length(climate)
255255
for ts in (1:timesteps)
256256
for outlet in outlets
257-
run_node!(sn, outlet, climate, ts)
257+
run_node!(sn[outlet], climate, ts)
258258
end
259259
end
260260
```

src/Streamfall.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ function run_node!(
243243
if checkbounds(Bool, node.outflow, ts)
244244
if node.outflow[ts] != undef
245245
# already ran for this time step so no need to run
246-
return node.outflow[ts], node.level[ts]
246+
return node.outflow[ts]
247247
end
248248
end
249249

0 commit comments

Comments
 (0)