Deblank field names to prevent crashes during computation of posterior moments

Necessary after switching to indirect indexing of structure fields
time-shift
Johannes Pfeifer 2015-10-23 08:53:23 +02:00
parent 4d573e600d
commit 1f18a2468b
3 changed files with 9 additions and 0 deletions

View File

@ -43,6 +43,9 @@ else
var2 = var1;
end
var1=deblank(var1);
var2=deblank(var2);
if isfield(oo_,[TYPE 'TheoreticalMoments'])
temporary_structure = oo_.([TYPE, 'TheoreticalMoments']);
if isfield(temporary_structure,'dsge')

View File

@ -60,6 +60,9 @@ else
var2 = var1;
end
var1=deblank(var1);
var2=deblank(var2);
if isfield(oo_,[ TYPE 'TheoreticalMoments'])
temporary_structure = oo_.([TYPE, 'TheoreticalMoments']);
if isfield(temporary_structure,'dsge')

View File

@ -61,6 +61,9 @@ if isempty(jndx)
return
end
var=deblank(var);
exo=deblank(exo);
name = [ var '.' exo ];
if isfield(oo_, [ TYPE 'TheoreticalMoments'])
temporary_structure = oo_.([TYPE, 'TheoreticalMoments']);