Skip to content

Commit

Permalink
ReduceAlgs: remove redundant calls to DoResetMeterZones
Browse files Browse the repository at this point in the history
  • Loading branch information
PMeira committed Mar 16, 2024
1 parent eb03a63 commit a858db9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Meters/ReduceAlgs.pas
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ procedure DoReduceShortLines(DSS: TDSSContext; var BranchList: TCktTree);
end;

DSS.ActiveCircuit.ReprocessBusDefs(); // to get new load added and account for disabled devices
DSS.ActiveCircuit.DoResetMeterZones(); // without eliminated devices
// DSS.ActiveCircuit.DoResetMeterZones(); // without eliminated devices -- already called in ReprocessBusDefs
DSS.ActiveCircuit.Solution.SystemYChanged := TRUE; // force rebuild of Y
end;

Expand Down Expand Up @@ -442,7 +442,7 @@ procedure DoRemoveBranches(DSS: TDSSContext; var BranchList: TCktTree; FirstPDEl
end;

DSS.ActiveCircuit.ReprocessBusDefs(); // to get new load added and account for disabled devices
DSS.ActiveCircuit.DoResetMeterZones(); // without eliminated devices
// DSS.ActiveCircuit.DoResetMeterZones(); // without eliminated devices -- already called in ReprocessBusDefs
DSS.ActiveCircuit.Solution.SystemYChanged := TRUE; // force rebuild of Y
end;

Expand Down Expand Up @@ -533,7 +533,7 @@ procedure DoRemoveAll_1ph_Laterals(DSS: TDSSContext; var Branchlist: TCktTree);
end;

DSS.ActiveCircuit.ReprocessBusDefs(); // to get new load added and account for disabled devices
DSS.ActiveCircuit.DoResetMeterZones(); // without eliminated devices
// DSS.ActiveCircuit.DoResetMeterZones(); // without eliminated devices -- already called in ReprocessBusDefs
DSS.ActiveCircuit.Solution.SystemYChanged := TRUE; // force rebuild of Y
end;

Expand Down

0 comments on commit a858db9

Please sign in to comment.