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, ...@@ -54,7 +54,11 @@ if opt_gsa.load_ident_files==0,
mss = yys(bayestopt_.mfys,:); mss = yys(bayestopt_.mfys,:);
mss = teff(mss(:,istable),Nsam,istable); mss = teff(mss(:,istable),Nsam,istable);
yys = teff(yys(oo_.dr.order_var,istable),Nsam,istable); yys = teff(yys(oo_.dr.order_var,istable),Nsam,istable);
[vdec, cc, ac] = mc_moments(T, lpmatx, oo_.dr); if exist('T'),
[vdec, cc, ac] = mc_moments(T, lpmatx, oo_.dr);
if opt_gsa.morris==2, if opt_gsa.morris==2,
...@@ -73,6 +73,11 @@ if ~exist('T') ...@@ -73,6 +73,11 @@ if ~exist('T')
else else
load([dirname,'/',M_.fname,'_mc'],'T'); load([dirname,'/',M_.fname,'_mc'],'T');
end end
if ~exist('T'),
disp('The model is too large!')
disp('Reduced form mapping stopped!')
end end
if isempty(dir(adir)) if isempty(dir(adir))
mkdir(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