diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2020-06-13 00:01:53 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2020-06-13 00:01:53 -0300 |
commit | 6c0e98a2727d07e1fbb38b78c27d68e98ad09465 (patch) | |
tree | 12764ca986c9a1943bc2012b0cc751471773f6ee /Project/ControlElementSolver.h | |
parent | 196389a70ef3a03aa8764b9532812a17dd55014b (diff) | |
download | PSP.git-6c0e98a2727d07e1fbb38b78c27d68e98ad09465.tar.gz PSP.git-6c0e98a2727d07e1fbb38b78c27d68e98ad09465.tar.xz PSP.git-6c0e98a2727d07e1fbb38b78c27d68e98ad09465.zip |
Device context implemented
Diffstat (limited to 'Project/ControlElementSolver.h')
-rw-r--r-- | Project/ControlElementSolver.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Project/ControlElementSolver.h b/Project/ControlElementSolver.h index db08c33..81e923f 100644 --- a/Project/ControlElementSolver.h +++ b/Project/ControlElementSolver.h @@ -50,7 +50,7 @@ class ControlElementSolver ControlElementSolver(ControlElementContainer* ctrlContainer, double timeStep = 1e-3, double integrationError = 1e-3, - wxWindow* parent = NULL); + wxWindow* parent = nullptr); virtual ~ControlElementSolver() {} virtual bool InitializeValues(bool startAllZero); virtual void SolveNextStep(); @@ -78,15 +78,15 @@ class ControlElementSolver void FillAllConnectedChildren(ConnectionLine* parent); ConnectionLine* SolveNextElement(ConnectionLine* currentLine); - ControlElementContainer* m_ctrlContainer = NULL; + ControlElementContainer* m_ctrlContainer = nullptr; double m_timeStep = 1e-3; double m_integrationError = 1e-5; std::vector<double> m_solutions; bool m_isOK = false; wxString m_failMessage = _("Unknown error."); - IOControl* m_inputControl = NULL; /**< First input control to be solved */ - IOControl* m_outputControl = NULL; + IOControl* m_inputControl = nullptr; /**< First input control to be solved */ + IOControl* m_outputControl = nullptr; // Inputs bool m_switchStatus = false; double m_currentTime = 0.0; @@ -105,7 +105,7 @@ class ControlElementSolver * m_inputToSolve[1] = Current time; * m_inputToSolve[2] = Switch status. */ - double* m_inputToSolve = NULL; + double* m_inputToSolve = nullptr; // Outputs double m_fieldVoltage = 0.0; double m_mecPower = 0.0; |