Account for ML in map_ident_.m

In this case, pdraws is empty. Closes #676
time-shift
Johannes Pfeifer 2015-06-05 20:49:43 +02:00
parent 4e6ce64081
commit 68c9c3e9ab
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ if opt_gsa.load_ident_files==0,
if opt_gsa.morris==2,
pdraws = dynare_identification(options_.options_ident,[lpmatx lpmat(istable,:)]);
% [pdraws, TAU, GAM] = dynare_identification(options_.options_ident,[lpmatx lpmat(istable,:)]);
if max(max(abs(pdraws-[lpmatx lpmat(istable,:)])))==0,
if ~isempty(pdraws) && max(max(abs(pdraws-[lpmatx lpmat(istable,:)])))==0,
disp(['Sample check OK ', num2str(max(max(abs(pdraws-[lpmatx lpmat(istable,:)]))))]),
clear pdraws;
end