Use dprintf routine (in matlab/backward subfolder).

time-shift
Stéphane Adjemian (Charybdis) 2019-06-19 19:19:43 +02:00
parent b3af8c4a48
commit dc251f53f4
3 changed files with 7 additions and 7 deletions

View File

@ -6,7 +6,7 @@ function [dbase, info] = checkdatabase(dbase, DynareModel, inversionflag, simula
% endogenous variables in difference (which may be lagged), or lags on the
% exogenous variables, then thee routine complete the database.
% Copyright (C) 2018 Dynare Team
% Copyright (C) 2018-2019 Dynare Team
%
% This file is part of Dynare.
%
@ -76,7 +76,7 @@ if inversionflag
% If some exogenous variables are missing, check that they can be interpreted as residuals.
missingexogenousvariables = setdiff(info.exonames, dbase.name);
if ~isempty(missingexogenousvariables)
disp(sprintf('%s exogenous variables are missing in the database...', num2str(length(missingexogenousvariables))))
dprintf('%s exogenous variables are missing in the database...', num2str(length(missingexogenousvariables)))
listofmissinglaggedexognousvariables = intersect(listoflaggedexogenousvariables, missingexogenousvariables);
if isempty(listofmissinglaggedexognousvariables)
info.residuals = missingexogenousvariables;

View File

@ -63,7 +63,7 @@ else
if ismember(exonames{i}, innovations.name)
Innovations(:,i) = innovations{exonames{i}}.data(1:samplesize);
else
disp(sprintf('Exogenous variable %s is not available in third argument, default value is zero.', exonames{i}));
dprintf('Exogenous variable %s is not available in third argument, default value is zero.', exonames{i})
end
end
else
@ -80,7 +80,7 @@ else
if ismember(exonames{i}, innovations.name)
Innovations(:,i) = innovations{exonames{i}}.data(1:samplesize);
else
disp(sprintf('Exogenous variable %s is not available in third argument, default value is zero.', exonames{i}));
dprintf('Exogenous variable %s is not available in third argument, default value is zero.', exonames{i})
end
end
else

View File

@ -2,7 +2,7 @@ function [initialconditions, samplesize, innovations, DynareOptions, DynareModel
% Initialization of the routines simulating backward models.
% Copyright (C) 2017-2018 Dynare Team
% Copyright (C) 2017-2019 Dynare Team
%
% This file is part of Dynare.
%
@ -97,7 +97,7 @@ for i = 1:length(endowithlagnames)
missinginitialcondition = true;
for j=variable.nobs:-1:variable.nobs-(lags-1)
if isnan(variable.data(j))
disp(sprintf('Variable %s should not have a NaN value in period %s.', endowithlagnames{i}, date2string(variable.dates(j))))
dprintf('Variable %s should not have a NaN value in period %s.', endowithlagnames{i}, date2string(variable.dates(j)))
end
end
end
@ -140,7 +140,7 @@ for i = 1:length(exowithlagnames)
missinginitialcondition = true;
for j=variable.nobs:-1:variable.nobs-(lags-1)
if isnan(variable.data(j))
disp(sprintf('Variable %s should not have a NaN value in period %s.', exowithlagnames{i}, date2string(variable.dates(j))))
dprintf('Variable %s should not have a NaN value in period %s.', exowithlagnames{i}, date2string(variable.dates(j)))
end
end
end