summaryrefslogtreecommitdiffstats
path: root/Project/Sum.cpp
diff options
context:
space:
mode:
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;