This commit is contained in:
CismonX 2018-06-08 19:34:12 +08:00
parent e6c393695a
commit 55123fd783
1 changed files with 1 additions and 1 deletions

View File

@ -440,7 +440,7 @@ namespace flow
if (verbose_)
writer::println("Short circuit edge current:");
for (auto&& edge : edges_) {
const auto admittance = edge.admittance();
const auto admittance = -edge.admittance();
const auto m = node_offset(edge.m);
const auto n = node_offset(edge.n);
edge_current[i] = (u_f_[m] - u_f_[n] / (edge.k ? edge.k : 1)) * admittance;