ENgetresultindex {epanet2toolkit}R Documentation

Retrieves the order in which a node or link appears in an output file.

Description

Retrieves the order in which a node or link appears in an output file.

Usage

ENgetresultindex(type, index)

Arguments

type

a type of element (either EN_NODE or EN_LINK).

index

the element's current index (starting from 1).

Details

If the element does not appear in the file then its result index is 0.

This function can be used to correctly retrieve results from an EPANET binary output file after the order of nodes or links in a network's database has been changed due to editing operations.

Value

the order in which the element's results were written to file.


[Package epanet2toolkit version 1.0.4 Index]