diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2018-07-14 13:08:45 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2018-07-14 13:08:45 -0300 |
commit | f4de628c999810808d961899299686a9f0c50b5b (patch) | |
tree | 640d0532af6d0d2f33f6580e769489894bdb3c81 /Project/Electromechanical.h | |
parent | 7ddd1d26ad13ad23f520dff08485ef2794d5958b (diff) | |
download | PSP.git-f4de628c999810808d961899299686a9f0c50b5b.tar.gz PSP.git-f4de628c999810808d961899299686a9f0c50b5b.tar.xz PSP.git-f4de628c999810808d961899299686a9f0c50b5b.zip |
Some vector pre-allocation and test curves implementation
Diffstat (limited to 'Project/Electromechanical.h')
-rw-r--r-- | Project/Electromechanical.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Project/Electromechanical.h b/Project/Electromechanical.h index 4c82bb6..573c0c2 100644 --- a/Project/Electromechanical.h +++ b/Project/Electromechanical.h @@ -57,6 +57,9 @@ class Electromechanical : public ElectricCalculation bool RunStabilityCalculation(); wxString GetErrorMessage() const { return m_errorMsg; } std::vector<double> GetTimeVector() const { return m_timeVector; } + + // For tests + std::vector<double> GetIterationVector() const { return m_iterationsNumVector; } protected: void SetEventTimeList(); @@ -98,6 +101,7 @@ class Electromechanical : public ElectricCalculation double k = 1.0); void SaveData(); + void PreallocateVectors(); wxWindow* m_parent = NULL; wxString m_errorMsg = _("Unknown error"); @@ -127,6 +131,10 @@ class Electromechanical : public ElectricCalculation std::vector<bool> m_eventOccurrenceList; std::vector<double> m_timeVector; + + // For tests + int m_iterationsNum = 0.0; + std::vector<double> m_iterationsNumVector; }; #endif // ELECTROMECHANICAL_H |