From c822ce1ef0c1bbf435de00627d49049df00d261e Mon Sep 17 00:00:00 2001 From: sebastien Date: Fri, 5 Dec 2008 11:27:28 +0000 Subject: [PATCH] trunk: only execute the 'rmpath basename' in Sparse mode git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2294 ac1d8469-bf42-47a9-8791-bf33cf982152 --- ModFile.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ModFile.cc b/ModFile.cc index 52f7f856..4be66ee4 100644 --- a/ModFile.cc +++ b/ModFile.cc @@ -219,7 +219,9 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all) const mOutputFile << "save('" << basename << "_results.mat', 'oo_', 'M_');" << endl; mOutputFile << "diary off" << endl; - mOutputFile << "rmpath " << basename << ";\n"; + + if (model_tree.mode == eSparseMode) + mOutputFile << "rmpath " << basename << ";\n"; mOutputFile << endl << "disp(['Total computing time : ' dynsec2hms(toc) ]);" << endl; mOutputFile.close();