bernardoct / WaterPaths

WaterPaths - A utility planning and management tool based off the NC Triangle model.
Apache License 2.0
18 stars 8 forks source link

Wrong assignment of treatment capacities in allocated water source #4

Closed bernardoct closed 6 years ago

bernardoct commented 6 years ago

Treatment capacities may not be assigned to correct utilities in allocated water sources. Lines 415/416 in WaterSources.cpp have to be changed to allocated_treatment_fractions->at(u) to allocated_treatment_fractions->at(i), since it is defined in the current scope before the other allocation vectors are adjusted to utility IDs.

bernardoct commented 6 years ago

Fixed.