check if canal or inflow diversions and set available water from recall object set total volumes of canal diversions (source = "div") - rtb set total volumes of inflow diversions from recall file set total volumes of inflow diversions from monthly flow rate (m3/s) loop through each demand object zero demand, withdrawal, and unmet for each source set demand for each object if demand - check source availability check if water is available from each source - set withdrawal and unmet loop through sources again to check if compensation is allowed compute total withdrawal for demand object from all sources if irrigating set amount applied and runoff irrigation demand treatment of withdrawn water no treatment - treated = withdrawal compute treatment by inputting the mass or concentrations transfer (diversion) of withdrawn and possibly treated water sum demand, withdrawal, and unmet for entire allocation object
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(inout) | :: | iwallo |