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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user