OpenWaterAnalytics / EPANET

The Water Distribution System Hydraulic and Water Quality Analysis Toolkit
MIT License
279 stars 204 forks source link

Fix error attribute index for output reader #700

Closed wqycg closed 1 year ago

wqycg commented 1 year ago

The attribute index starts from 1 rather than 0.

typedef enum {
    ENR_demand      = 1,
    ENR_head        = 2,
    ENR_pressure    = 3,
    ENR_quality     = 4
} ENR_NodeAttribute;

typedef enum {
    ENR_flow        = 1,
    ENR_velocity    = 2,
    ENR_headloss    = 3,
    ENR_avgQuality  = 4,
    ENR_status      = 5,
    ENR_setting     = 6,
    ENR_rxRate      = 7,
    ENR_frctnFctr   = 8
} ENR_LinkAttribute;