summaryrefslogtreecommitdiffstats
path: root/Project/Sum.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-12-31 17:59:10 -0200
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-12-31 17:59:10 -0200
commitdbe0b112622f8e91fa3e44a6b6e1aa7e230d3ded (patch)
tree51c89fc8155dcc447743dc89a1ab5ce36acc72cf /Project/Sum.cpp
parentff52be4e9705d443a4fde091525806322c2dc032 (diff)
downloadPSP.git-dbe0b112622f8e91fa3e44a6b6e1aa7e230d3ded.tar.gz
PSP.git-dbe0b112622f8e91fa3e44a6b6e1aa7e230d3ded.tar.xz
PSP.git-dbe0b112622f8e91fa3e44a6b6e1aa7e230d3ded.zip
Math Expression implemented
Diffstat (limited to 'Project/Sum.cpp')
-rw-r--r--Project/Sum.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Project/Sum.cpp b/Project/Sum.cpp
index 749a056..52fe66a 100644
--- a/Project/Sum.cpp
+++ b/Project/Sum.cpp
@@ -199,8 +199,12 @@ void Sum::Rotate(bool clockwise)
}
}
-bool Sum::Solve(double input, double timeStep, double currentTime)
+bool Sum::Solve(double* input, double timeStep)
{
+ if(!input) {
+ m_output = 0.0;
+ return true;
+ }
std::vector<double> inputVector;
for(auto itN = m_nodeList.begin(), itNEnd = m_nodeList.end(); itN != itNEnd; ++itN) {
Node* node = *itN;