computeBackroute
public boolean computeBackroute(RunTimeStep rts,
double[] dnstrmTS,
double[] routedPrevRel,
double[] upstrmTS,
int lag,
int offset,
double[] routeCoef,
int ruleType)
Object of the method is to determine flow required at upstream end of reach to match the requested downstream flow after linear routing.
The upstream and downstream flow arrays are provided. The upstream array is changed through this method (the upstream flow is the output from this method).
Both arrays are the length of the routing window. The downstream array is offset in time from the upstream array by minoffset steps.
- Parameters:
rts - the current RunTimeStep for the release decision
step - the time step at which the downstream flow is expected to match the required flow ???
dnstrmTS - array containing the routed release
routedPrevRel - contribution to downstream flow from previous upstream releases
upstrmTS - array containing the reservoir release
lag - approximate integer lag of routing
offset - integer shift between upstream and downstream routing
routeCoef - array of linear routing coefficients
- Returns:
- true if successful