From e5a5041915127e72820a0478724a20dc41f0327e Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Mon, 26 Mar 2018 08:35:19 -0300 Subject: Control systems initialization bug fixed --- Project/Sum.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Project/Sum.cpp') diff --git a/Project/Sum.cpp b/Project/Sum.cpp index 9908497..6d15e7f 100644 --- a/Project/Sum.cpp +++ b/Project/Sum.cpp @@ -218,7 +218,10 @@ bool Sum::Solve(double* input, double timeStep) for(auto itCN = nodeList.begin(), itCNEnd = nodeList.end(); itCN != itCNEnd; ++itCN) { Node* childNode = *itCN; if(childNode == node) { - inputVector.push_back(cLine->GetValue()); + if(!cLine->IsSolved()) + inputVector.push_back(0.0); + else + inputVector.push_back(cLine->GetValue()); break; } } -- cgit