summaryrefslogtreecommitdiffstats
path: root/Project/SimulationsSettingsForm.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2018-04-11 09:23:12 -0300
committerGitHub <noreply@github.com>2018-04-11 09:23:12 -0300
commitaf070d92462ac5586aa6a0a80c51a8fa72710600 (patch)
tree1e78bf3ced07950a572b1d94c4b029c540c73148 /Project/SimulationsSettingsForm.cpp
parente5a5041915127e72820a0478724a20dc41f0327e (diff)
parentf6cd17abe2e788c2b1a1983a4d7efbd3b49880ca (diff)
downloadPSP.git-af070d92462ac5586aa6a0a80c51a8fa72710600.tar.gz
PSP.git-af070d92462ac5586aa6a0a80c51a8fa72710600.tar.xz
PSP.git-af070d92462ac5586aa6a0a80c51a8fa72710600.zip
Merge pull request #45 from Thales1330/wip/import-ANAREDE-files
Wip import anarede files
Diffstat (limited to 'Project/SimulationsSettingsForm.cpp')
-rw-r--r--Project/SimulationsSettingsForm.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Project/SimulationsSettingsForm.cpp b/Project/SimulationsSettingsForm.cpp
index 174b614..1e32b1d 100644
--- a/Project/SimulationsSettingsForm.cpp
+++ b/Project/SimulationsSettingsForm.cpp
@@ -123,6 +123,9 @@ bool SimulationsSettingsForm::ValidateData()
if(!Element::IntFromString(this, m_textCtrlPFMaxIterations->GetValue(), data.powerFlowMaxIterations,
_("Value entered incorrectly in the field \"Max. iterations (Power flow)\".")))
return false;
+ if(!Element::DoubleFromString(this, m_textCtrlPFSlackBusAngle->GetValue(), data.initAngle,
+ _("Value entered incorrectly in the field \"Slack bus angle\".")))
+ return false;
if(!Element::DoubleFromString(this, m_textCtrlTimeStep->GetValue(), data.timeStep,
_("Value entered incorrectly in the field \"Time step\".")))
return false;