Added missing aux. variable (PAC/VAR expectation).

time-shift
Stéphane Adjemian (Charybdis) 2019-03-25 17:42:01 +01:00
parent e20a3ffa45
commit d4a1d4b46a
Signed by untrusted user who does not match committer: stepan
GPG Key ID: A6D44CB9C64CE77B
1 changed files with 9 additions and 3 deletions

View File

@ -193,12 +193,18 @@ function printlistofvariables(fid, kind, list, DynareModel)
if ~isempty(tags)
tags = sprintf('(%s)', tags(3:end));
end
if isempty(tags)
vlist = sprintf('%s\n\t%s', vlist, list{i});
else
if isequal(list{i}(1:16), 'pac_expectation_') || isequal(list{i}(1:16), 'var_expectation_')
tags = '';
else
vlist = sprintf('%s\n\t%s %s', vlist, list{i}, tags);
error('Unknown variable.')
end
end
if isempty(tags)
vlist = sprintf('%s\n\t%s', vlist, list{i});
else
vlist = sprintf('%s\n\t%s %s', vlist, list{i}, tags);
end
end
fprintf(fid, '%s;', vlist);
else