Calibration: crash with a diverted ungauged node
The network below results in the following error:
Error in InputsModel$Qupstream[Runoptions$IndPeriod_Run, i] <- OutputsModel[[InputsModel$UpstreamNodes[i]]][[InputsModel$UpstreamVarQ[i]]]: le nombre d'objets à remplacer n'est pas multiple de la taille du remplacement
graph LR
id_54001[54001]
id_54095[54095]
id_Dam[Dam]
id_54095[54095]
id_54095 -->| 0 km| id_Dam
id_Dam -->| 42 km| id_54001
id_54095 -->| 42 km| id_54001
class id_54001 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 0 stroke:#faa, stroke-width:2px,stroke-dasharray: 5 5;