From 2483639f4d5f45e21b85d25d55081593c944de0b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Wed, 18 May 2022 19:27:00 +0200
Subject: [PATCH] Fix bug introduced in
 3516894a71a44c9e21094f91ce8e58878530dfc5 related to new estimation syntax

---
 src/ComputingTasks.cc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/ComputingTasks.cc b/src/ComputingTasks.cc
index 37924dc9..7af37c4e 100644
--- a/src/ComputingTasks.cc
+++ b/src/ComputingTasks.cc
@@ -4116,6 +4116,7 @@ JointPriorStatement::writeOutputHelper(ostream &output, const string &field, con
   else if (auto it = options_list.vector_of_vector_value_options.find(field);
            it != options_list.vector_of_vector_value_options.end())
     {
+      output << "{";
       for (auto it2 = it->second.begin(); it2 != it->second.end(); ++it2)
         {
           if (it2 != it->second.begin())
@@ -4129,7 +4130,10 @@ JointPriorStatement::writeOutputHelper(ostream &output, const string &field, con
             }
           output << "]";
         }
+      output << "}";
     }
+  else
+    output << "{}";
   output << "};" << endl;
 }
 
-- 
GitLab