Commit bf755fa1 authored by Jim Nutaro's avatar Jim Nutaro
Browse files

Fixed an indexing error into the node array

parent cd65c989
......@@ -197,8 +197,8 @@ skip_line:
// Get shunts
Complex BI(atof(GETTOK(NULL)),atof(GETTOK(NULL)));
Complex BJ(atof(GETTOK(NULL)),atof(GETTOK(NULL)));
nodes[line_data.from].B += BI;
nodes[line_data.to].B += BJ;
nodes[bus_id_to_idx[line_data.from]].B += BI;
nodes[bus_id_to_idx[line_data.to]].B += BJ;
// Get the line status
int status = atoi(GETTOK(NULL));
if (status == 1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment