Ungauged node: Diversion to Reservoir crashes Calibration
The network below crashes either the donor is "54001" (by default) or "54029" (defined manually) with the error:
Error in InputsModel$Qupstream[Runoptions$IndPeriod_Run, i] <-
OutputsModel[[InputsModel$UpstreamNodes[i]]][[InputsModel$UpstreamVarQ[i]]] :
number of items to replace is not a multiple of replacement length
graph LR
id_54032[54032]
id_54001[54001]
id_54095[54095]
id_54029[54029]
id_54095[54095]
id_Dam[Dam]
id_54001 -->| 45 km| id_54032
id_54095 -->| 42 km| id_54001
id_54029 -->| 32 km| id_54032
id_54095 -->| 10 km| id_Dam
id_Dam -->| 0 km| id_54029
class id_54032,id_54001,id_54029 IntermediateGauged
class id_54095,id_54095 UpstreamUngaugedDiversion
class id_Dam Reservoir
classDef default stroke:#333
classDef UpstreamUngauged fill:#eef
classDef UpstreamGauged fill:#aaf
classDef IntermediateUngauged fill:#efe
classDef IntermediateGauged fill:#afa
classDef DirectInjection fill:#faa
classDef Reservoir fill:#9de
classDef UpstreamUngaugedDiversion fill:#eef, stroke:#faa, stroke-width:3px
classDef UpstreamGaugedDiversion fill:#aaf, stroke:#faa, stroke-width:3px
classDef IntermediateUngaugedDiversion fill:#efe, stroke:#faa, stroke-width:3px
classDef IntermediateGaugedDiversion fill:#afa, stroke:#faa, stroke-width:3px
linkStyle 3 stroke:#faa, stroke-width:2px,stroke-dasharray: 5 5;