Commit 103790f9 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

fix compiler warning on MSVC

parent 7c4d9926
......@@ -46,7 +46,9 @@ set(INCLUDE_DIRS
${EIGEN3_INCLUDE_DIR}
)
set(LIBRARIES "-lstdc++fs")
if(NOT MSVC)
set(LIBRARIES "-lstdc++fs")
endif()
if(NOT WIN32)
# we use PyArg_ParseTupleAndKeywords several times, which erroneously accepts
......
......@@ -45,7 +45,7 @@ void FaultSimulation::clearFault(Int Node1, Int Node2, Int Node3)
if (std::signbit(mIfa) != std::signbit(mIfa_hist) && !aCleared) {
mComponents.erase(mComponents.begin() + 1);
addSystemTopology(mComponents);
switchSystemMatrix(mSwitchEventVector.size() + NumClearedPhases);
switchSystemMatrix((Int) mSwitchEventVector.size() + NumClearedPhases);
NumClearedPhases++;
aCleared = true;
}
......@@ -53,7 +53,7 @@ void FaultSimulation::clearFault(Int Node1, Int Node2, Int Node3)
if (std::signbit(mIfb) != std::signbit(mIfb_hist) && !bCleared) {
mComponents.erase(mComponents.begin() + 2);
addSystemTopology(mComponents);
switchSystemMatrix(mSwitchEventVector.size() + NumClearedPhases);
switchSystemMatrix((Int) mSwitchEventVector.size() + NumClearedPhases);
NumClearedPhases++;
bCleared = true;
}
......@@ -61,7 +61,7 @@ void FaultSimulation::clearFault(Int Node1, Int Node2, Int Node3)
if (std::signbit(mIfc) != std::signbit(mIfc_hist) && !cCleared) {
mComponents.erase(mComponents.begin() + 1);
addSystemTopology(mComponents);
switchSystemMatrix(mSwitchEventVector.size() + NumClearedPhases);
switchSystemMatrix((Int) mSwitchEventVector.size() + NumClearedPhases);
NumClearedPhases++;
cCleared = true;
}
......
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