From a082526299f812a80f9bd372b11e4a21cfe9de79 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien.villemot@ens.fr>
Date: Mon, 30 Aug 2010 17:11:08 +0200
Subject: [PATCH] K-order DLL: no longer create an extra MAT file (useless and
 undocumented) (cherry picked from commit
 a4769fc80d3a51e919986784d9caf60bbbcab873)

---
 .../k_order_perturbation.cc                     | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/mex/sources/k_order_perturbation/k_order_perturbation.cc b/mex/sources/k_order_perturbation/k_order_perturbation.cc
index dea903873a..99c312ef4c 100644
--- a/mex/sources/k_order_perturbation/k_order_perturbation.cc
+++ b/mex/sources/k_order_perturbation/k_order_perturbation.cc
@@ -221,23 +221,6 @@ extern "C" {
         // run stochastic steady
         app.walkStochSteady();
 
-        //ConstTwoDMatrix ss(app.getSS());
-        // open mat file
-        std::string matfile(fName); //(params.basename);
-        matfile += ".mat";
-        FILE *matfd = NULL;
-        if (NULL == (matfd = fopen(matfile.c_str(), "wb")))
-          mexErrMsgIdAndTxt("dynare:k_order_perturbation", "Couldn't open %s for writing.", matfile.c_str());
-
-        //std::string ss_matrix_name(fName);
-        //ss_matrix_name += "_steady_states";
-        //ss.writeMat4(matfd, ss_matrix_name.c_str());
-
-        // write the folded decision rule to the Mat-4 file
-        app.getFoldDecisionRule().writeMat4(matfd, fName.c_str()); //params.prefix);
-
-        fclose(matfd);
-
         /* Write derivative outputs into memory map */
         map<string, ConstTwoDMatrix> mm;
         app.getFoldDecisionRule().writeMMap(mm, string());
-- 
GitLab