diff options
Diffstat (limited to 'Project/Sum.cpp')
-rw-r--r-- | Project/Sum.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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; } } |