Skip to content

Commit c38e380

Browse files
committed
fix bug in bin function
#166
1 parent c7ccaae commit c38e380

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

epanet_matlab_toolkit/epanet.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16651,7 +16651,7 @@ function MSXMatlabCleanup(obj)
1665116651
nheadl=1;
1665216652
end
1665316653
nodes = obj.getBinNodeNameID;
16654-
links = obj.getBinLinkNameID;
16654+
links = obj.getBinLinksInfo;
1665516655
controls = obj.getBinControlsInfo;
1665616656
curves = obj.getBinCurvesInfo;
1665716657
rules=obj.getBinRulesControlsInfo;
@@ -16942,8 +16942,8 @@ function MSXMatlabCleanup(obj)
1694216942
elseif (sect==9) && (nn==0)
1694316943
mm=1;
1694416944
if mm < length(a)+1
16945-
if pp<length(char(nodes.BinNodeJunctionNameID))+1
16946-
if strcmp(a{mm}, nodes.BinNodeJunctionNameID{pp})
16945+
if pp<length(char(links.BinLinkInitialStatus))+1
16946+
if strcmp(a{mm}, links.BinLinkNameID{pp})
1694716947
pp=pp+1;
1694816948
fprintf(fid2, '%s%s', char(a{mm}), sps);
1694916949
if length(a)==2

0 commit comments

Comments
 (0)