summaryrefslogtreecommitdiffstats
path: root/Project/FileHanding.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2018-04-07 16:59:59 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2018-04-07 16:59:59 -0300
commit4e1e884a21a767f13278e32463b5417569db3534 (patch)
tree24b88bb0296156e6f20147812f2ba2821349e114 /Project/FileHanding.cpp
parent71379e56edd24c2b4d9ea341710c2a7cda6d3afb (diff)
downloadPSP.git-4e1e884a21a767f13278e32463b5417569db3534.tar.gz
PSP.git-4e1e884a21a767f13278e32463b5417569db3534.tar.xz
PSP.git-4e1e884a21a767f13278e32463b5417569db3534.zip
Bugfixes
Diffstat (limited to 'Project/FileHanding.cpp')
-rw-r--r--Project/FileHanding.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Project/FileHanding.cpp b/Project/FileHanding.cpp
index 7262c57..91ddcfe 100644
--- a/Project/FileHanding.cpp
+++ b/Project/FileHanding.cpp
@@ -70,6 +70,8 @@ void FileHanding::SaveProject(wxFileName path)
XMLParser::SetNodeValue(doc, pfTolerance, simulationData.powerFlowTolerance);
auto pfMaxIter = XMLParser::AppendNode(doc, powerFlowPropNode, "MaxIterations");
XMLParser::SetNodeValue(doc, pfMaxIter, simulationData.powerFlowMaxIterations);
+ auto pfSlackAngle = XMLParser::AppendNode(doc, powerFlowPropNode, "SlackAngle");
+ XMLParser::SetNodeValue(doc, pfSlackAngle, simulationData.initAngle);
auto stabilityPropNode = XMLParser::AppendNode(doc, simulationPropNode, "Stability");
auto timeStep = XMLParser::AppendNode(doc, stabilityPropNode, "TimeStep");
@@ -284,6 +286,7 @@ bool FileHanding::OpenProject(wxFileName path)
simData.accFator = XMLParser::GetNodeValueDouble(powerFlow, "AccFactor");
simData.powerFlowTolerance = XMLParser::GetNodeValueDouble(powerFlow, "Tolerance");
simData.powerFlowMaxIterations = XMLParser::GetNodeValueInt(powerFlow, "MaxIterations");
+ simData.initAngle = XMLParser::GetNodeValueDouble(powerFlow, "SlackAngle");
// Stability
auto stability = simPropertiesNode->first_node("Stability");