Skip to content
Snippets Groups Projects
Commit 1f18a246 authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

Deblank field names to prevent crashes during computation of posterior moments

Necessary after switching to indirect indexing of structure fields
parent 4d573e60
Branches
Tags
No related merge requests found
......@@ -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')
......
......@@ -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')
......
......@@ -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']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment