Skip to content
Snippets Groups Projects
Commit c3a3954c authored by michel's avatar michel
Browse files

4.0: merging changeset r2510 (message -> msg)

git-svn-id: https://www.dynare.org/svn/dynare/branches/4.0@2511 ac1d8469-bf42-47a9-8791-bf33cf982152
parent f348c89a
No related branches found
Tags
No related merge requests found
...@@ -31,19 +31,20 @@ function varlist = check_list_of_variables(options_, M_, varlist) ...@@ -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(' ')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment