Skip to content

Commit cd4b6dc

Browse files
Standardize function name
it is `align_state!` for all other nodes so I change it for HyMod for consistency.
1 parent 6ce914d commit cd4b6dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Nodes/HyMod/HyModNode.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function run_hymod!(node::SimpleHyModNode, ts::Int64, P::F, PET::F, inflow::F, e
147147

148148
Qtmp::F = (Qs1 + Qf3) * node.area
149149
Q_t::F = inflow + Qtmp - ext + flux
150-
update_states!(node, ts, Sm_t1, Sf1_t1, Sf2_t1, Sf3_t1, Ss1_t1, Q_t)
150+
update_state!(node, ts, Sm_t1, Sf1_t1, Sf2_t1, Sf3_t1, Ss1_t1, Q_t)
151151

152152
return Q_t
153153
end
@@ -162,7 +162,7 @@ function update_params!(node::HyModNode, Sm_max::F, B::F, alpha::F, Kf::F, Ks::F
162162
end
163163

164164

165-
# function update_states!(node::HyModNode, Sm, Sf1, Sf2, Sf3, Ss1, Q)::Nothing
165+
# function update_state!(node::HyModNode, Sm, Sf1, Sf2, Sf3, Ss1, Q)::Nothing
166166
# append!(node.Sm, Sm)
167167
# append!(node.Sf1, Sf1)
168168
# append!(node.Sf2, Sf2)
@@ -172,7 +172,7 @@ end
172172

173173
# return nothing
174174
# end
175-
function update_states!(
175+
function update_state!(
176176
node::HyModNode, ts::Int, Sm::F, Sf1::F, Sf2::F, Sf3::F, Ss1::F, Q::F
177177
)::Nothing where {F<:Float64}
178178
# State for time t+1

0 commit comments

Comments
 (0)