4.1: replacing 'message' by msg and initializing it
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2510 ac1d8469-bf42-47a9-8791-bf33cf982152time-shift
parent
c198c52fbc
commit
e9d3793891
|
@ -31,19 +31,20 @@ function varlist = check_list_of_variables(options_, M_, varlist)
|
||||||
% 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/>.
|
||||||
|
|
||||||
|
msg = 0;
|
||||||
if options_.bvar_dsge && options_.bayesian_irf
|
if options_.bvar_dsge && options_.bayesian_irf
|
||||||
if ~isempty(varlist)
|
if ~isempty(varlist)
|
||||||
for i=1:size(varlist,1)
|
for i=1:size(varlist,1)
|
||||||
idx = strmatch(deblank(varlist(i,:)),options_.varobs,'exact');
|
idx = strmatch(deblank(varlist(i,:)),options_.varobs,'exact');
|
||||||
if isempty(idx)
|
if isempty(idx)
|
||||||
disp([varlist(i,:) ' is not an observed variable!']);
|
disp([varlist(i,:) ' is not an observed variable!']);
|
||||||
message = 1;
|
msg = 1;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if size(varlist,1)~=size(options_.varobs)
|
if size(varlist,1)~=size(options_.varobs)
|
||||||
message = 1;
|
msg = 1;
|
||||||
end
|
end
|
||||||
if message
|
if msg
|
||||||
disp(' ')
|
disp(' ')
|
||||||
disp('Posterior IRFs will be computed for all observed variables.')
|
disp('Posterior IRFs will be computed for all observed variables.')
|
||||||
disp(' ')
|
disp(' ')
|
||||||
|
|
Loading…
Reference in New Issue