Calibration: crash with downstream receiver node with upstream reservoir
In this case provided by Thomas Peysson at SMIAGE, the Calibration crashes with the following error:
> OutputsCalib <- suppressWarnings(Calibration(InputsModel, RunOptions,InputsCrit, CalibOptions = CalibOptions, verbose = FALSE))
Calibration.GRiwrmInputsModel: Processing sub-basin Mons...
Calibration.GRiwrmInputsModel: Processing sub-basin Mourachonne...
Calibration.GRiwrmInputsModel: Processing sub-basin Callian...
Calibration.GRiwrmInputsModel: Processing sub-basin Valcluse...
Calibration.GRiwrmInputsModel: Processing sub-basin Montauroux...
Calibration.GRiwrmInputsModel: Processing sub-basin Biancon...
Calibration.GRiwrmInputsModel: Processing sub-basin Pierranchon...
Calibration.GRiwrmInputsModel: Processing sub-basin Veyans...
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
This is a regression coming from a change occuring between middle July and beginning of August.