Commit 3863b0ad authored by MichelJuillard's avatar MichelJuillard

use "clear -all" instead of "clear all" when running under Octave

(cherry picked from commit 7840dbbb)
parent 9b068fd5
......@@ -384,7 +384,13 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all, bool console,
<< "% from model file (.mod)" << endl << endl;
if (clear_all)
mOutputFile << "clear all" << endl;
{
mOutputFile << "if exist('OCTAVE_VERSION')" << endl
<< " clear -all" << endl
<< "else" << endl
<< " clear all" << endl
<< "end" << endl;
}
mOutputFile << "tic;" << endl
<< "global M_ oo_ options_ ys0_ ex0_" << endl
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment