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
Dynare
preprocessor
Commits
b1d7f8f2
Commit
b1d7f8f2
authored
Feb 25, 2014
by
Sébastien Villemot
Browse files
Fix bug in external functions introduced in 711a4f62.
parent
9a0dddef
Changes
1
Hide whitespace changes
Inline
Side-by-side
ExprNode.cc
View file @
b1d7f8f2
...
...
@@ -4938,7 +4938,7 @@ FirstDerivExternalFunctionNode::writeOutput(ostream &output, ExprNodeOutputType
const
int
first_deriv_symb_id
=
datatree
.
external_functions_table
.
getFirstDerivSymbID
(
symb_id
);
assert
(
first_deriv_symb_id
!=
eExtFunSetButNoNameProvided
);
const
int
tmpIndx
=
inputIndex
-
ARRAY_SUBSCRIPT_OFFSET
(
output_type
);
const
int
tmpIndx
=
inputIndex
-
1
+
ARRAY_SUBSCRIPT_OFFSET
(
output_type
);
if
(
first_deriv_symb_id
==
symb_id
)
output
<<
"TEFD_"
<<
getIndxInTefTerms
(
symb_id
,
tef_terms
)
...
...
@@ -5193,8 +5193,8 @@ SecondDerivExternalFunctionNode::writeOutput(ostream &output, ExprNodeOutputType
const
int
second_deriv_symb_id
=
datatree
.
external_functions_table
.
getSecondDerivSymbID
(
symb_id
);
assert
(
second_deriv_symb_id
!=
eExtFunSetButNoNameProvided
);
const
int
tmpIndex1
=
inputIndex1
-
ARRAY_SUBSCRIPT_OFFSET
(
output_type
);
const
int
tmpIndex2
=
inputIndex2
-
ARRAY_SUBSCRIPT_OFFSET
(
output_type
);
const
int
tmpIndex1
=
inputIndex1
-
1
+
ARRAY_SUBSCRIPT_OFFSET
(
output_type
);
const
int
tmpIndex2
=
inputIndex2
-
1
+
ARRAY_SUBSCRIPT_OFFSET
(
output_type
);
int
indx
=
getIndxInTefTerms
(
symb_id
,
tef_terms
);
if
(
second_deriv_symb_id
==
symb_id
)
...
...
Write
Preview
Supports
Markdown
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