From 39afe5b0b2a4055aa0c3aa6eb554453ef51b5a84 Mon Sep 17 00:00:00 2001
From: sebastien <sebastien@ac1d8469-bf42-47a9-8791-bf33cf982152>
Date: Fri, 5 Dec 2008 15:34:26 +0000
Subject: [PATCH] trunk: * removed obsolete global variables "endval_" and
 "rplottype_" * removed duplicate initialization of options_.replic

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2295 ac1d8469-bf42-47a9-8791-bf33cf982152
---
 ModFile.cc                 | 3 +--
 NumericalInitialization.cc | 6 ++----
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/ModFile.cc b/ModFile.cc
index 4be66ee4..939526b0 100644
--- a/ModFile.cc
+++ b/ModFile.cc
@@ -153,8 +153,7 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all) const
   if (clear_all)
     mOutputFile << "clear all" << endl;
   mOutputFile << "tic;" << endl;
-  mOutputFile << "global M_ oo_" << endl;
-  mOutputFile << "global options_ endval_" << endl;
+  mOutputFile << "global M_ oo_ options_" << endl;
   mOutputFile << "global ys0_ ex0_ ct_" << endl;
   mOutputFile << "options_ = [];" << endl;
   mOutputFile << "M_.fname = '" << basename << "';" << endl;
diff --git a/NumericalInitialization.cc b/NumericalInitialization.cc
index 061f2a80..cf5bf600 100644
--- a/NumericalInitialization.cc
+++ b/NumericalInitialization.cc
@@ -83,8 +83,7 @@ InitValStatement::writeOutput(ostream &output, const string &basename) const
          << "% INITVAL instructions" << endl
          << "%" << endl;
   // Writing initval block to set initial values for variables
-  output << "options_.initval_file = 0;" << endl
-         << "endval_=0;" << endl;
+  output << "options_.initval_file = 0;" << endl;
 
   writeInitValues(output);
 
@@ -113,8 +112,7 @@ EndValStatement::writeOutput(ostream &output, const string &basename) const
          << "%" << endl;
   // Writing endval block to set terminal values for variables
   output << "ys0_= oo_.steady_state;" << endl
-         << "ex0_ = oo_.exo_steady_state;" << endl
-         << "endval_ = 1;" << endl;
+         << "ex0_ = oo_.exo_steady_state;" << endl;
 
   writeInitValues(output);
 }
-- 
GitLab