From 8059a901929ff558db7ce11b2d469b84b007a6d2 Mon Sep 17 00:00:00 2001 From: Michael Tryby Date: Tue, 4 Sep 2018 15:16:40 -0400 Subject: [PATCH] Add ENsetdemandpattern --- include/epanet2.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/epanet2.h b/include/epanet2.h index e619792..10fe684 100644 --- a/include/epanet2.h +++ b/include/epanet2.h @@ -933,6 +933,15 @@ extern "C" { */ int DLLEXPORT ENsetbasedemand(int nodeIndex, int demandIdx, EN_API_FLOAT_TYPE baseDemand); + /** + @brief Sets the index of the demand pattern assigned to a node for a category index. + @param nodeIndex The index of a node (first node is index 1). + @param demandIndex The index of a category (first category is index 1). + @param pattIndex The index of the pattern for this node and category. + @return Error code + */ + int DLLEXPORT ENsetdemandpattern(int nodeIndex, int demandIdx, int patIndex); + /** @brief Retrieves index of curve with specific ID. @param id The ID of a curve.