Commit 92e4e737 authored by Marco Ratto's avatar Marco Ratto
Browse files

Trap the cases where the state space matrices are not stored for memory allocation issues

[to be fixed later by breaking the big matrix stored ...]
parent b0ce2dac
......@@ -54,7 +54,11 @@ if opt_gsa.load_ident_files==0,
mss = yys(bayestopt_.mfys,:);
mss = teff(mss(:,istable),Nsam,istable);
yys = teff(yys(oo_.dr.order_var,istable),Nsam,istable);
if exist('T'),
[vdec, cc, ac] = mc_moments(T, lpmatx, oo_.dr);
else
return,
end
if opt_gsa.morris==2,
......
......@@ -73,6 +73,11 @@ if ~exist('T')
else
load([dirname,'/',M_.fname,'_mc'],'T');
end
if ~exist('T'),
disp('The model is too large!')
disp('Reduced form mapping stopped!')
return
end
end
if isempty(dir(adir))
mkdir(adir)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment