Skip to content

Commit 98712fd

Browse files
committed
update source param
Signed-off-by: Tony Xiang <19280867+TonyXiang8787@users.noreply.github.com>
1 parent f1f5022 commit 98712fd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • power_grid_model_c/power_grid_model/include/power_grid_model/math_solver

power_grid_model_c/power_grid_model/include/power_grid_model/math_solver/y_bus.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,10 @@ template <symmetry_tag sym> class YBus {
386386
std::views::zip(math_model_param_incrmt.shunt_param_to_change, math_model_param_incrmt.shunt_param)) {
387387
math_model_param_.shunt_param[idx_to_change] = params;
388388
}
389+
for (auto const& [idx_to_change, params] :
390+
std::views::zip(math_model_param_incrmt.source_param_to_change, math_model_param_incrmt.source_param)) {
391+
math_model_param_.source_param[idx_to_change] = params;
392+
}
389393

390394
// process and update affected entries
391395
update_admittance_entries(get_affected_admittance_entries(math_model_param_incrmt));

0 commit comments

Comments
 (0)