Skip to content

Commit

Permalink
change names of new functions to ENgetnodevalues and ENgetlinkvalues
Browse files Browse the repository at this point in the history
  • Loading branch information
AbelHeinsbroek committed Apr 24, 2024
1 parent 4dff3bd commit 9637f5c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion include/epanet2.h
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ extern "C" {

int DLLEXPORT ENgetlinkvalue(int index, int property, EN_API_FLOAT_TYPE *value);

int DLLEXPORT ENgetlinksvalues(int property, EN_API_FLOAT_TYPE *value);
int DLLEXPORT ENgetlinkvalues(int property, EN_API_FLOAT_TYPE *value);

int DLLEXPORT ENsetlinkvalue(int index, int property, EN_API_FLOAT_TYPE value);

Expand Down
4 changes: 2 additions & 2 deletions include/epanet2_2.h
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ typedef struct Project *EN_Project;
(see @ref Units).
*/

int DLLEXPORT EN_getnodesvalues(EN_Project ph, int property, double *out_values);
int DLLEXPORT EN_getnodevalues(EN_Project ph, int property, double *out_values);

/**
@brief Retrieves an array of property values for all nodes.
Expand Down Expand Up @@ -1265,7 +1265,7 @@ typedef struct Project *EN_Project;
Values are returned in units that depend on the units used for flow rate (see @ref Units).
*/
int DLLEXPORT EN_getlinksvalues(EN_Project ph, int property, double *out_values);
int DLLEXPORT EN_getlinkvalues(EN_Project ph, int property, double *out_values);

/**
@brief Sets a property value for a link.
Expand Down
4 changes: 2 additions & 2 deletions src/epanet.c
Original file line number Diff line number Diff line change
Expand Up @@ -2358,7 +2358,7 @@ int DLLEXPORT EN_getnodevalue(EN_Project p, int index, int property, double *val
return 0;
}

int DLLEXPORT EN_getnodesvalues(EN_Project p, int property, double *values)
int DLLEXPORT EN_getnodevalues(EN_Project p, int property, double *values)
/*----------------------------------------------------------------
** Input: property = node property code (see EN_NodeProperty)
** Output: values = array of node property values
Expand Down Expand Up @@ -3923,7 +3923,7 @@ int DLLEXPORT EN_getlinkvalue(EN_Project p, int index, int property, double *val
return 0;
}

int DLLEXPORT EN_getlinksvalues(EN_Project p, int property, double *values)
int DLLEXPORT EN_getlinkvalues(EN_Project p, int property, double *values)
/*----------------------------------------------------------------
** Input: property = link property code (see EN_LinkProperty)
** Output: values = array of link property values
Expand Down
8 changes: 4 additions & 4 deletions src/epanet2.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,9 @@ int DLLEXPORT ENgetnodevalue(int index, int property, EN_API_FLOAT_TYPE *value)
return errcode;
}

int DLLEXPORT ENgetnodesvalues(int property, EN_API_FLOAT_TYPE *values)
int DLLEXPORT ENgetnodevalues(int property, EN_API_FLOAT_TYPE *values)
{
return EN_getnodesvalues(_defaultProject, property, values);
return EN_getnodevalues(_defaultProject, property, values);
}

int DLLEXPORT ENsetnodevalue(int index, int property, EN_API_FLOAT_TYPE value)
Expand Down Expand Up @@ -528,9 +528,9 @@ int DLLEXPORT ENgetlinkvalue(int index, int property, EN_API_FLOAT_TYPE *value)
*value = (EN_API_FLOAT_TYPE)v;
return errcode;
}
int DLLEXPORT ENgetlinksvalues(int property, EN_API_FLOAT_TYPE *values)
int DLLEXPORT ENgetlinkvalues(int property, EN_API_FLOAT_TYPE *values)
{
return EN_getlinksvalues(_defaultProject, property, values);
return EN_getlinkvalues(_defaultProject, property, values);
}

int DLLEXPORT ENsetlinkvalue(int index, int property, EN_API_FLOAT_TYPE value)
Expand Down

0 comments on commit 9637f5c

Please sign in to comment.