From bb6ad83e724884b9f21cbc820819a6abc4d868f3 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

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

diff --git a/ExprNode.cc b/ExprNode.cc
index ad012b90..d7d8374c 100644
--- a/ExprNode.cc
+++ b/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