Changed verbosity options (fast deterministic simulations). Default is options_.verbosity==1.

time-shift
Stéphane Adjemian (Charybdis) 2011-12-26 14:26:32 +01:00
parent b8bb1acce1
commit 3e84e333b4
3 changed files with 5 additions and 3 deletions

View File

@ -33,6 +33,7 @@ function time_series = extended_path(initial_conditions,sample_size)
global M_ options_ oo_
debug = 0;
options_.verbosity = options_.ep.verbosity;
verbosity = options_.ep.verbosity+debug;
% Test if bytecode and block options are used (these options are mandatory)

View File

@ -35,6 +35,8 @@ bayestopt_ = [];
options_.console_mode = 0;
options_.verbosity = 1;
options_.terminal_condition = 0;
options_.rplottype = 0;
options_.smpl = 0;
@ -109,7 +111,7 @@ options_.SpectralDensity = 0;
% Extended path options
%
% Set verbose mode
options_.ep.verbosity = 1;
options_.ep.verbosity = 0;
% Initialization of the perfect foresight equilibrium paths
% * init=0, previous solution is used.
% * init=1, a path generated with the first order reduced form is used.

View File

@ -286,8 +286,7 @@ main(int nrhs, const char *prhs[])
nb_row_xd = row_x;
}
}
mxArray *ep = mxGetFieldByNumber(options_, 0, mxGetFieldNumber(options_, "ep"));
int verbose= int(*mxGetPr((mxGetFieldByNumber(ep, 0, mxGetFieldNumber(ep, "verbosity")))));
int verbose= int(*mxGetPr((mxGetFieldByNumber(options_, 0, mxGetFieldNumber(options_, "verbosity")))));
if (verbose)
print_it = true;
int maxit_ = int (floor(*(mxGetPr(mxGetFieldByNumber(options_, 0, mxGetFieldNumber(options_, "maxit_"))))));