From c6febbccb138625e15ef6bdb192a4cc66e7595d6 Mon Sep 17 00:00:00 2001
From: Ferhat Mihoubi <ferhat.mihoubi@univ-evry.fr>
Date: Fri, 31 Dec 2010 16:26:25 +0100
Subject: [PATCH] Stores the first order derivatives in the TEFD matrix, when
 derivatives are computed with a different external function (useful only for
 printing the model equations)

---
 ExprNode.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ExprNode.cc b/ExprNode.cc
index 6a9f2fa8..ed7c2f64 100644
--- a/ExprNode.cc
+++ b/ExprNode.cc
@@ -4686,6 +4686,8 @@ FirstDerivExternalFunctionNode::compileExternalFunctionOutput(ostream &CompileCo
       FCALL_ fcall(nb_output_arguments, nb_add_input_arguments, datatree.symbol_table.getName(first_deriv_symb_id), indx);
       fcall.set_function_type(ExternalFunctionFirstDerivative);
       fcall.write(CompileCode, instruction_number);
+      FSTPTEFD_ fstptefd(indx, inputIndex);
+      fstptefd.write(CompileCode, instruction_number);
     }
 }
 
-- 
GitLab