Commit 58afa0ce authored by Markus Mirz's avatar Markus Mirz
Browse files

fixed signbit error

parent 4f3fdf0b
......@@ -264,7 +264,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);
......@@ -272,7 +272,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);
......@@ -280,7 +280,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);
......
Supports Markdown
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