Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
Power System Simulation and Optimization
DPsim
DPsim
Commits
a258b5ab
Commit
a258b5ab
authored
Dec 18, 2017
by
Markus Mirz
Browse files
fixed signbit declaration
Former-commit-id:
0fe50593
parent
dde02d26
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/Simulation.cpp
View file @
a258b5ab
...
...
@@ -263,7 +263,7 @@ void Simulation::clearFault(Int Node1, Int Node2, Int Node3) {
if
(
signbit
(
mIfa
)
!=
signbit
(
mIfa_hist
)
&&
!
aCleared
)
{
if
(
std
::
signbit
(
mIfa
)
!=
std
::
signbit
(
mIfa_hist
)
&&
!
aCleared
)
{
mElements
.
erase
(
mElements
.
begin
()
+
1
);
addSystemTopology
(
mElements
);
switchSystemMatrix
(
mSwitchEventVector
.
size
()
+
NumClearedPhases
);
...
...
@@ -271,7 +271,7 @@ void Simulation::clearFault(Int Node1, Int Node2, Int Node3) {
aCleared
=
true
;
}
if
(
signbit
(
mIfb
)
!=
signbit
(
mIfb_hist
)
&&
!
bCleared
)
{
if
(
std
::
signbit
(
mIfb
)
!=
std
::
signbit
(
mIfb_hist
)
&&
!
bCleared
)
{
mElements
.
erase
(
mElements
.
begin
()
+
2
);
addSystemTopology
(
mElements
);
switchSystemMatrix
(
mSwitchEventVector
.
size
()
+
NumClearedPhases
);
...
...
@@ -279,7 +279,7 @@ void Simulation::clearFault(Int Node1, Int Node2, Int Node3) {
bCleared
=
true
;
}
if
(
signbit
(
mIfc
)
!=
signbit
(
mIfc_hist
)
&&
!
cCleared
)
{
if
(
std
::
signbit
(
mIfc
)
!=
std
::
signbit
(
mIfc_hist
)
&&
!
cCleared
)
{
mElements
.
erase
(
mElements
.
begin
()
+
1
);
addSystemTopology
(
mElements
);
switchSystemMatrix
(
mSwitchEventVector
.
size
()
+
NumClearedPhases
);
...
...
Write
Preview
Supports
Markdown
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