From f0909834c0827b3dae59f9ba86d310c5752af276 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Thu, 25 Aug 2016 15:35:32 +0200
Subject: [PATCH] preprocessor: external_function: add comma to function output
 args

---
 preprocessor/ExprNode.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/preprocessor/ExprNode.cc b/preprocessor/ExprNode.cc
index ad012b907d..d7d8374c5b 100644
--- a/preprocessor/ExprNode.cc
+++ b/preprocessor/ExprNode.cc
@@ -5150,9 +5150,9 @@ ExternalFunctionNode::writeExternalFunctionOutput(ostream &output, ExprNodeOutpu
         {
           if (symb_id == first_deriv_symb_id
               && symb_id == second_deriv_symb_id)
-            output << "[TEF_" << indx << " TEFD_"<< indx << " TEFDD_"<< indx << "] = ";
+            output << "[TEF_" << indx << ", TEFD_"<< indx << ", TEFDD_"<< indx << "] = ";
           else if (symb_id == first_deriv_symb_id)
-            output << "[TEF_" << indx << " TEFD_"<< indx << "] = ";
+            output << "[TEF_" << indx << ", TEFD_"<< indx << "] = ";
           else
             output << "TEF_" << indx << " = ";
 
-- 
GitLab