diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-12-31 18:00:25 -0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-31 18:00:25 -0200 |
commit | 0c0280cfcf540f943fd2dbfdf7ac0304ea96a465 (patch) | |
tree | 51c89fc8155dcc447743dc89a1ab5ce36acc72cf /Project/Divider.cpp | |
parent | c8193665975686fb8a344bee3dc94914a3d3558a (diff) | |
parent | dbe0b112622f8e91fa3e44a6b6e1aa7e230d3ded (diff) | |
download | PSP.git-0c0280cfcf540f943fd2dbfdf7ac0304ea96a465.tar.gz PSP.git-0c0280cfcf540f943fd2dbfdf7ac0304ea96a465.tar.xz PSP.git-0c0280cfcf540f943fd2dbfdf7ac0304ea96a465.zip |
Merge pull request #43 from Thales1330/wip/math-expr-control-block
Wip math expr control block
Diffstat (limited to 'Project/Divider.cpp')
-rw-r--r-- | Project/Divider.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Project/Divider.cpp b/Project/Divider.cpp index 2bd8251..3f7027d 100644 --- a/Project/Divider.cpp +++ b/Project/Divider.cpp @@ -33,8 +33,9 @@ void Divider::DrawSymbol() const DrawCircle(m_position + wxPoint2DDouble(0, 3), 2, 10, GL_POLYGON); } -bool Divider::Solve(double input, double timeStep) +bool Divider::Solve(double* input, double timeStep) { + // Get the input vector from connection lines (can't use default (one) input argument) std::vector<double> inputVector; for(auto itN = m_nodeList.begin(), itNEnd = m_nodeList.end(); itN != itNEnd; ++itN) { Node* node = *itN; |