From bfac26ce73f859d92a37743dac93574d93f005b5 Mon Sep 17 00:00:00 2001 From: sebastien Date: Tue, 24 Jun 2008 18:20:48 +0000 Subject: [PATCH] v4: merged Octave branch into trunk git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1899 ac1d8469-bf42-47a9-8791-bf33cf982152 --- ModFile.cc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/ModFile.cc b/ModFile.cc index fd15bb14..045941c0 100644 --- a/ModFile.cc +++ b/ModFile.cc @@ -142,11 +142,13 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all) const mOutputFile << "% Some global variables initialization" << endl; mOutputFile << "%" << endl; mOutputFile << "global_initialization;" << endl; - mOutputFile << "diary off;" << endl << "warning off;" << endl << endl; - mOutputFile << "delete " << basename << ".log;" << endl; - mOutputFile << "warning on;" << endl << "warning backtrace;" << endl; + mOutputFile << "diary off;" << endl + << "warning_old_state = warning;" << endl + << "warning off;" << endl + << "delete " << basename << ".log;" << endl + << "warning warning_old_state" << endl; mOutputFile << "logname_ = '" << basename << ".log';" << endl; - mOutputFile << "diary '" << basename << ".log';" << endl; + mOutputFile << "diary " << basename << ".log" << endl; if (model_tree.equation_number() > 0) @@ -188,7 +190,7 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all) const it != statements.end(); it++) (*it)->writeOutput(mOutputFile, basename); - mOutputFile << "save('" << basename << "_results', 'oo_');" << endl; + mOutputFile << "save('" << basename << "_results.mat', 'oo_');" << endl; mOutputFile << "diary off" << endl; mOutputFile << endl << "disp(['Total computing time : ' sec2hms(round(toc)) ]);" << endl;