From 8ddda0ef821709540f26d3b082f58faa2ac077ef Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Wed, 17 Dec 2014 11:09:46 +0100
Subject: [PATCH] preprocessor: add oo_recursive_ to results file, closes #812

---
 ModFile.cc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ModFile.cc b/ModFile.cc
index 55490177..667e7ac6 100644
--- a/ModFile.cc
+++ b/ModFile.cc
@@ -790,7 +790,9 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all, bool no_log, b
               << "if exist('dataset_', 'var') == 1" << endl
               << "  save('" << basename << "_results.mat', 'dataset_', '-append');" << endl << "end" << endl
               << "if exist('estimation_info', 'var') == 1" << endl
-              << "  save('" << basename << "_results.mat', 'estimation_info', '-append');" << endl << "end" << endl;
+              << "  save('" << basename << "_results.mat', 'estimation_info', '-append');" << endl << "end" << endl
+              << "if exist('oo_recursive_', 'var') == 1" << endl
+              << "  save('" << basename << "_results.mat', 'oo_recursive_', '-append');" << endl << "end" << endl;
 
   config_file.writeEndParallel(mOutputFile);
 
-- 
GitLab