From 4e1e884a21a767f13278e32463b5417569db3534 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Sat, 7 Apr 2018 16:59:59 -0300 Subject: Bugfixes --- Project/FileHanding.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Project/FileHanding.cpp') 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"); -- cgit