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
issue#70
sebastien 2008-12-05 11:27:28 +00:00
parent 8159e78633
commit c822ce1ef0
1 changed files with 3 additions and 1 deletions

View File

@ -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();