Changed coordinates are saved to INP

Added a flag which controls the loading of coordinates at epanet.c line
213.
When set to TRUE coordinates are loaded and users can use the ENgetcoord
and ENsetcoord functions. Changes are then saved when ENsaveinpfile is
called.
When set to FALSE coordinates are not loaded and can't be retrieved or
changed. When saved, the COORD section is copied from the original INP
file.
This commit is contained in:
Elad Salomons
2015-09-13 12:56:28 +03:00
parent c12f901454
commit 2c46a002ba
6 changed files with 53 additions and 14 deletions

View File

@@ -604,7 +604,7 @@ int coordata()
strncpy(Coord[j].ID, Node[j].ID, MAXID);
Coord[j].X = x;
Coord[j].Y = y;
Coord[j].HaveCoords = 1;
Coord[j].HaveCoords = TRUE;
return(0);
} /* end of coordata */