Skip to content

Commit 91a359c

Browse files
Version bump
Very minor tweak to SIMHYD to reduce allocation/GC
1 parent 8229726 commit 91a359c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "Streamfall"
22
uuid = "09d4d480-e905-4803-959d-af438f1c2811"
33
authors = ["ConnectedSystems"]
4-
version = "0.5.1"
4+
version = "0.6.0"
55

66
[deps]
77
BlackBoxOptim = "a134a8b2-14d6-55f6-9291-3336d3ab0209"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Naive timings (using `@time`) for an example dataset spanning 1963-07-05 - 2014-
2727
- GR4JNode \
2828
0.015274 seconds (224.75 k allocations: 5.584 MiB)
2929
- SIMHYDNode \
30-
0.039540 seconds (638.01 k allocations: 15.190 MiB, 46.99% gc time)
30+
0.022818 seconds (600.39 k allocations: 16.768 MiB)
3131
- IHACRESBilinearNode \
3232
0.021734 seconds (675.63 k allocations: 17.773 MiB)
3333

src/Nodes/SIMHYD/SIMHYDNode.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ function run_simhyd(node::SIMHYDNode, P::F, ET::F, ts::Int64)::NTuple{6,F} where
235235
impervious_ET::F = min(node.impervious_threshold, impervious_incident)
236236
impervious_runoff::F = impervious_incident - impervious_ET
237237

238-
interception_ET::F = min(pervious_incident, min(ET, node.risc))
238+
interception_ET::F = min(pervious_incident, min(ET, node.risc.val::F)::F)
239239
throughfall::F = pervious_incident - impervious_ET
240240

241241
smsc::F = node.smsc.val

0 commit comments

Comments
 (0)