skip to main content
Reach Account Slot Inflow
The following Rio Grande-specific methods are available on the Reach.
* Reconcile Rio Grande Outflow
This method computes the total accounting Slot Inflow to reconcile the physical and accounting flows based on the water type of the accounts. Accounts with water type “SanJuan” have their Slot Inflows set to 0.0cfs. The remaining total reconciliation water is then proportioned to the Slot Inflow on accounts with the RioGrande water type.
Method Details  
The logic is as follows.
1. Get a list of all the Inflow slots on accounts with water type RioGrande. and register each as a dependency.
RioGrandeInflowSUM = Sum of RioGrande Inflows
2. Get a list of all the Slot Inflows slots on accounts with water type RioGrande.
3. Get a list of all the Slot Inflow slots on accounts with water type SanJuan.
4. Get a list of all the Outflow slots on accounts with water type SanJuan and register each as a dependency.
SanJuanOutflowSUM = Sum of SanJuan Outflows
5. Get the Reach.Outflow (this includes the physical loss)
6. If the RioGrandeInflowSUM is zero, then divide any Slot Inflows equally to all Rio Grande accounts.
Otherwise, for each account with water type RioGrande:
7. Set Slot Inflows on accounts with water type SanJuan to 0.0.
* Rio Grande Local Inflow
This method sets all Local Inflow to the Slot Inflow on the account named “RioGrande.” All accounts with Water type SanJuan are given zero Slot Inflows.
Method Details  
The logic is as follows.
1. Get the single passthrough account named “RioGrande”.
2. Get the RioGrande Slot Inflow slot.
3. If Local Inflow is in use and valid, set the following:
RioGrande.Slot Inflow = Local Inflow ()
4. Get a list of all the SanJuan Slot Inflow slots.
5. Set all SanJuan Slot Inflows to 0.0.
Revised: 01/04/2021