//==================================================
        //Total Effluent
        //-------------------------------------------------

        private int[] get_Total_Effluent()
        {
            ProviderIntArray TSA = new ProviderIntArray(0);

            // get deficit and demand
            int[] EffluentUsed           = Total_Effluent_Reused.getvalues().Values;
            int[] get_EffluentDischarged = Effluent_Discharged.getvalues().Values;

            for (int i = 0; i < TSA.Length; i++)
            {
                int TS = 0;
                TS     = (EffluentUsed[i] + get_EffluentDischarged[i]);
                TSA[i] = TS;
                //TotalSupply[i] = TS;
            }
            return(TSA.Values);       // TotalSupply.Values;
        }
        //==================================================
        //Effluent To Ag
        //-------------------------------------------------
        private int[] get_Effluent_To_Ag()
        {
            ProviderIntArray TSA = new ProviderIntArray(0);

            // get deficit and demand
            int[] Effluent = Total_Effluent_Reused.getvalues().Values;
            int[] Power    = Effluent_To_PowerPlant.getvalues().Values;
            int[] Vadose   = Effluent_To_Vadose.getvalues().Values;

            for (int i = 0; i < TSA.Length; i++)
            {
                int TS = 0;
                TS     = Effluent[i] - (Power[i] + Vadose[i]);
                TSA[i] = TS;
                //TotalSupply[i] = TS;
            }
            return(TSA.Values);       // TotalSupply.Values;
        }