Skip to content

Commit f1f5022

Browse files
committed
remove assert
Signed-off-by: Tony Xiang <19280867+TonyXiang8787@users.noreply.github.com>
1 parent 08fa9bc commit f1f5022

1 file changed

Lines changed: 0 additions & 8 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: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -378,14 +378,6 @@ template <symmetry_tag sym> class YBus {
378378
return 0 <= idx && idx < std::ssize(math_model_param_.source_param);
379379
}));
380380

381-
assert(
382-
std::ranges::equal(math_model_param_incrmt.source_param,
383-
math_model_param_incrmt.source_param_to_change |
384-
std::views::transform([&](auto idx) { return math_model_param_.source_param[idx]; }),
385-
[](auto const& lhs, auto const& rhs) { return lhs.y1 == rhs.y1 && lhs.y0 == rhs.y0; }) &&
386-
"updateable source params currently do not affect y1 and y0, so the new values should be the same as old "
387-
"values");
388-
389381
for (auto const& [idx_to_change, params] :
390382
std::views::zip(math_model_param_incrmt.branch_param_to_change, math_model_param_incrmt.branch_param)) {
391383
math_model_param_.branch_param[idx_to_change] = params;

0 commit comments

Comments
 (0)