Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
c4ef68b2
Commit
c4ef68b2
authored
Jun 11, 2010
by
Sébastien Villemot
Browse files
Preprocessor: fixed bug (substitution was incorrectly done with leads on exogenous)
parent
04905660
Changes
1
Hide whitespace changes
Inline
Side-by-side
preprocessor/ExprNode.cc
View file @
c4ef68b2
...
...
@@ -2802,7 +2802,7 @@ BinaryOpNode::substituteEndoLeadGreaterThanTwo(subst_table_t &subst_table, vecto
return
buildSimilarBinaryOpNode
(
arg1subst
,
arg2subst
,
datatree
);
case
oTimes
:
case
oDivide
:
if
(
maxendolead1
>=
2
&&
maxendolead2
==
0
&&
arg2
->
maxExoLead
())
if
(
maxendolead1
>=
2
&&
maxendolead2
==
0
&&
arg2
->
maxExoLead
()
==
0
)
{
arg1subst
=
arg1
->
substituteEndoLeadGreaterThanTwo
(
subst_table
,
neweqs
);
return
buildSimilarBinaryOpNode
(
arg1subst
,
arg2
,
datatree
);
...
...
@@ -2846,7 +2846,7 @@ BinaryOpNode::substituteExoLead(subst_table_t &subst_table, vector<BinaryOpNode
return
buildSimilarBinaryOpNode
(
arg1subst
,
arg2subst
,
datatree
);
case
oTimes
:
case
oDivide
:
if
(
maxexolead1
>=
1
&&
maxexolead2
==
0
&&
arg2
->
maxEndoLead
())
if
(
maxexolead1
>=
1
&&
maxexolead2
==
0
&&
arg2
->
maxEndoLead
()
==
0
)
{
arg1subst
=
arg1
->
substituteExoLead
(
subst_table
,
neweqs
);
return
buildSimilarBinaryOpNode
(
arg1subst
,
arg2
,
datatree
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment