* 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
time-shift
sebastien 2008-12-05 15:34:26 +00:00
parent 824c5764e3
commit 2134146033
5 changed files with 6 additions and 11 deletions

View File

@ -28,10 +28,9 @@ function global_initialization()
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
global oo_ M_ options_ ct_ endval_ rplottype_
global oo_ M_ options_ ct_
ct_=0;
endval_=0;
options_.rplottype = 0;
options_.smpl = 0;
@ -101,7 +100,6 @@ function global_initialization()
% Prior draws
options_.forecast = 0;
options_.replic = 1;
% Model
options_.linear = 0;

View File

@ -28,7 +28,7 @@ function resid(period)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
global M_ options_ oo_ it_ endval_ z
global M_ options_ oo_ it_ z
if M_.exo_nbr > 0
oo_.exo_simul = ones(M_.maximum_lag+M_.maximum_lead+period,1)* ...

View File

@ -30,7 +30,7 @@ function simul(dr)
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
global M_ options_ oo_
global ys0_ ct_ endval_
global ys0_ ct_
if size(M_.lead_lag_incidence,2)-nnz(M_.lead_lag_incidence(M_.maximum_endo_lag+1,:)) > 0
mess = ['DYNARE: error in model specification : variable ' M_.endo_names(find(M_.lead_lag_incidence(M_.maximum_lag+1,:)==0),:)] ;

View File

@ -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;

View File

@ -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);
}