Skip to content

Commit 36a33ac

Browse files
author
mvelasqu
committed
fix: apply sum term bypassing for control model type 1
1 parent e986d39 commit 36a33ac

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/parsers/pm_io/psse.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -739,8 +739,9 @@ function _psse2pm_shunt!(pm_data::Dict, pti_data::Dict, import_all::Bool)
739739
error("Unsupported PSS(R)E source version: $(pm_data["source_version"])")
740740
end
741741

742-
if modsw (0, 2)
743-
# In fixed/continuous mode, BINIT is the total shunt admittance.
742+
if modsw (0, 1, 2)
743+
# For fixed/discrete/continuous modes used for PF comparison,
744+
# BINIT is treated as the total shunt admittance.
744745
# Keep Y_increase but zero all initial states to avoid double counting.
745746
sub_data["initial_status"] = zeros(Int, length(sub_data["y_increment"]))
746747
end

0 commit comments

Comments
 (0)