-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
@njit
def _specl_(ui, ts, state, step, specactions):
# todo determine best way to do error handling in specl
errors_specl = zeros(int(1)).astype(int64)
# state[1] = state[1] + 1000
state[1] += 1000
state[2] = 99
# state[3]
return errors_specl for step in range(steps):
# print("OUTDGT[step, :]", OUTDGT[step, :])
# call specl
# errors = _hydr_(ui, ts, COLIND, OUTDGT, rchtab, funct, Olabels, OVOLlabels, specactions)
# print(OUTDGT[step])
# print(OUTDGT[step, 0])
# print(OUTDGT[step, 1])
# print(OUTDGT[step, 2])
state = Dict.empty(key_type=types.int64, value_type=types.float64)
# state[2] = 1.0 # value of the variable constant from the equation for discharge_mgd
# state[3] = 0.15 # the value of the variable "consumption"
state[1] = OUTDGT[step, 0]
state[2] = OUTDGT[step, 1]
state[3] = OUTDGT[step, 2]
print("state before specl()")
[print(key,':',value) for key, value in state.items()]
errors_specl = specl(ui, ts, state, step, specactions)
print("state after specl()")
[print(key,':',value) for key, value in state.items()]
print("OUTDGT[step, :]", OUTDGT[step, :])
OUTDGT[step, :] = [state[1], state[2], state[3]]
print("OUTDGT[step, :]", OUTDGT[step, :])
convf = CONVF[step]
outdgt[:] = OUTDGT[step, :]
colind[:] = COLIND[step, :]
roseff = ro
oseff[:] = o[:]Metadata
Metadata
Assignees
Labels
No labels