From a7dc96516b6932e29f4f2bcd5fd577f88654d24c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Fri, 8 Jul 2022 15:13:21 +0200 Subject: [PATCH] Minor cleanup --- src/ExprNode.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ExprNode.cc b/src/ExprNode.cc index d5268294..82eb4c71 100644 --- a/src/ExprNode.cc +++ b/src/ExprNode.cc @@ -7389,9 +7389,6 @@ ExternalFunctionNode::writeExternalFunctionOutput(ostream &output, ExprNodeOutpu const temporary_terms_idxs_t &temporary_terms_idxs, deriv_node_temp_terms_t &tef_terms) const { - int first_deriv_symb_id = datatree.external_functions_table.getFirstDerivSymbID(symb_id); - assert(first_deriv_symb_id != ExternalFunctionsTable::IDSetButNoNameProvided); - for (auto argument : arguments) argument->writeExternalFunctionOutput(output, output_type, temporary_terms, temporary_terms_idxs, tef_terms); @@ -7399,6 +7396,8 @@ ExternalFunctionNode::writeExternalFunctionOutput(ostream &output, ExprNodeOutpu { tef_terms[{ symb_id, arguments }] = static_cast(tef_terms.size()); int indx = getIndxInTefTerms(symb_id, tef_terms); + int first_deriv_symb_id = datatree.external_functions_table.getFirstDerivSymbID(symb_id); + assert(first_deriv_symb_id != ExternalFunctionsTable::IDSetButNoNameProvided); int second_deriv_symb_id = datatree.external_functions_table.getSecondDerivSymbID(symb_id); assert(second_deriv_symb_id != ExternalFunctionsTable::IDSetButNoNameProvided);