Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Nutaro, James J
agm
Commits
bf755fa1
Commit
bf755fa1
authored
Dec 08, 2020
by
Jim Nutaro
Browse files
Fixed an indexing error into the node array
parent
cd65c989
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/PSSE_Raw_Data.cpp
View file @
bf755fa1
...
@@ -197,8 +197,8 @@ skip_line:
...
@@ -197,8 +197,8 @@ skip_line:
// Get shunts
// Get shunts
Complex
BI
(
atof
(
GETTOK
(
NULL
)),
atof
(
GETTOK
(
NULL
)));
Complex
BI
(
atof
(
GETTOK
(
NULL
)),
atof
(
GETTOK
(
NULL
)));
Complex
BJ
(
atof
(
GETTOK
(
NULL
)),
atof
(
GETTOK
(
NULL
)));
Complex
BJ
(
atof
(
GETTOK
(
NULL
)),
atof
(
GETTOK
(
NULL
)));
nodes
[
line_data
.
from
].
B
+=
BI
;
nodes
[
bus_id_to_idx
[
line_data
.
from
]
]
.
B
+=
BI
;
nodes
[
line_data
.
to
].
B
+=
BJ
;
nodes
[
bus_id_to_idx
[
line_data
.
to
]
]
.
B
+=
BJ
;
// Get the line status
// Get the line status
int
status
=
atoi
(
GETTOK
(
NULL
));
int
status
=
atoi
(
GETTOK
(
NULL
));
if
(
status
==
1
)
if
(
status
==
1
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment