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-bf33cf982152time-shift
parent
824c5764e3
commit
2134146033
|
@ -28,10 +28,9 @@ function global_initialization()
|
||||||
% You should have received a copy of the GNU General Public License
|
% You should have received a copy of the GNU General Public License
|
||||||
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
% 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;
|
ct_=0;
|
||||||
endval_=0;
|
|
||||||
|
|
||||||
options_.rplottype = 0;
|
options_.rplottype = 0;
|
||||||
options_.smpl = 0;
|
options_.smpl = 0;
|
||||||
|
@ -101,7 +100,6 @@ function global_initialization()
|
||||||
|
|
||||||
% Prior draws
|
% Prior draws
|
||||||
options_.forecast = 0;
|
options_.forecast = 0;
|
||||||
options_.replic = 1;
|
|
||||||
|
|
||||||
% Model
|
% Model
|
||||||
options_.linear = 0;
|
options_.linear = 0;
|
||||||
|
|
|
@ -28,7 +28,7 @@ function resid(period)
|
||||||
% You should have received a copy of the GNU General Public License
|
% You should have received a copy of the GNU General Public License
|
||||||
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
% 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
|
if M_.exo_nbr > 0
|
||||||
oo_.exo_simul = ones(M_.maximum_lag+M_.maximum_lead+period,1)* ...
|
oo_.exo_simul = ones(M_.maximum_lag+M_.maximum_lead+period,1)* ...
|
||||||
|
|
|
@ -30,7 +30,7 @@ function simul(dr)
|
||||||
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
global M_ options_ oo_
|
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
|
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),:)] ;
|
mess = ['DYNARE: error in model specification : variable ' M_.endo_names(find(M_.lead_lag_incidence(M_.maximum_lag+1,:)==0),:)] ;
|
||||||
|
|
|
@ -153,8 +153,7 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all) const
|
||||||
if (clear_all)
|
if (clear_all)
|
||||||
mOutputFile << "clear all" << endl;
|
mOutputFile << "clear all" << endl;
|
||||||
mOutputFile << "tic;" << endl;
|
mOutputFile << "tic;" << endl;
|
||||||
mOutputFile << "global M_ oo_" << endl;
|
mOutputFile << "global M_ oo_ options_" << endl;
|
||||||
mOutputFile << "global options_ endval_" << endl;
|
|
||||||
mOutputFile << "global ys0_ ex0_ ct_" << endl;
|
mOutputFile << "global ys0_ ex0_ ct_" << endl;
|
||||||
mOutputFile << "options_ = [];" << endl;
|
mOutputFile << "options_ = [];" << endl;
|
||||||
mOutputFile << "M_.fname = '" << basename << "';" << endl;
|
mOutputFile << "M_.fname = '" << basename << "';" << endl;
|
||||||
|
|
|
@ -83,8 +83,7 @@ InitValStatement::writeOutput(ostream &output, const string &basename) const
|
||||||
<< "% INITVAL instructions" << endl
|
<< "% INITVAL instructions" << endl
|
||||||
<< "%" << endl;
|
<< "%" << endl;
|
||||||
// Writing initval block to set initial values for variables
|
// Writing initval block to set initial values for variables
|
||||||
output << "options_.initval_file = 0;" << endl
|
output << "options_.initval_file = 0;" << endl;
|
||||||
<< "endval_=0;" << endl;
|
|
||||||
|
|
||||||
writeInitValues(output);
|
writeInitValues(output);
|
||||||
|
|
||||||
|
@ -113,8 +112,7 @@ EndValStatement::writeOutput(ostream &output, const string &basename) const
|
||||||
<< "%" << endl;
|
<< "%" << endl;
|
||||||
// Writing endval block to set terminal values for variables
|
// Writing endval block to set terminal values for variables
|
||||||
output << "ys0_= oo_.steady_state;" << endl
|
output << "ys0_= oo_.steady_state;" << endl
|
||||||
<< "ex0_ = oo_.exo_steady_state;" << endl
|
<< "ex0_ = oo_.exo_steady_state;" << endl;
|
||||||
<< "endval_ = 1;" << endl;
|
|
||||||
|
|
||||||
writeInitValues(output);
|
writeInitValues(output);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue