diff --git a/preprocessor/ModFile.cc b/preprocessor/ModFile.cc index 52f7f856a..4be66ee47 100644 --- a/preprocessor/ModFile.cc +++ b/preprocessor/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();