From bb39de549605df721174e3c84b2f264e5f1774d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Fri, 25 Nov 2011 15:11:02 +0100 Subject: [PATCH] Preprocessor: delete _steadystate2.m file from previous run if exists Closes: #224 --- ModFile.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ModFile.cc b/ModFile.cc index b066ed87..20356dfb 100644 --- a/ModFile.cc +++ b/ModFile.cc @@ -501,6 +501,9 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all, bool console, string statfile = basename + "_static.m"; unlink(statfile.c_str()); + string steadystatefile = basename + "_steadystate2.m"; + unlink(steadystatefile.c_str()); + if (!use_dll) { mOutputFile << "erase_compiled_function('" + basename + "_static');" << endl;