summaryrefslogtreecommitdiffstats
path: root/Project/MathExpression.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2018-04-11 09:23:12 -0300
committerGitHub <noreply@github.com>2018-04-11 09:23:12 -0300
commitaf070d92462ac5586aa6a0a80c51a8fa72710600 (patch)
tree1e78bf3ced07950a572b1d94c4b029c540c73148 /Project/MathExpression.cpp
parente5a5041915127e72820a0478724a20dc41f0327e (diff)
parentf6cd17abe2e788c2b1a1983a4d7efbd3b49880ca (diff)
downloadPSP.git-af070d92462ac5586aa6a0a80c51a8fa72710600.tar.gz
PSP.git-af070d92462ac5586aa6a0a80c51a8fa72710600.tar.xz
PSP.git-af070d92462ac5586aa6a0a80c51a8fa72710600.zip
Merge pull request #45 from Thales1330/wip/import-ANAREDE-files
Wip import anarede files
Diffstat (limited to 'Project/MathExpression.cpp')
-rw-r--r--Project/MathExpression.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/Project/MathExpression.cpp b/Project/MathExpression.cpp
index 0577c32..1657880 100644
--- a/Project/MathExpression.cpp
+++ b/Project/MathExpression.cpp
@@ -175,10 +175,7 @@ bool MathExpression::Solve(double* input, double timeStep)
for(auto itCN = nodeList.begin(), itCNEnd = nodeList.end(); itCN != itCNEnd; ++itCN) {
Node* childNode = *itCN;
if(childNode == node) {
- if(!cLine->IsSolved())
- m_inputValues[i] = 0.0;
- else
- m_inputValues[i] = cLine->GetValue();
+ m_inputValues[i] = cLine->GetValue();
break;
}
}