From ac09ab9dbf8443f41ce56fd930cd2c973e114b46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?= Date: Fri, 22 Feb 2019 22:35:15 +0100 Subject: [PATCH] Removed useless condition. --- matlab/+pac/+update/parameters.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matlab/+pac/+update/parameters.m b/matlab/+pac/+update/parameters.m index f49027d9c..ff296cb39 100644 --- a/matlab/+pac/+update/parameters.m +++ b/matlab/+pac/+update/parameters.m @@ -137,7 +137,7 @@ for e=1:number_of_pac_eq if ~isempty(h0) DynareModel.params(pacmodel.eqyations.(eqtag).h0_param_indices) = h0; else - if isfield(equations.(eqtag), 'h0_param_indices') && ~isempty(equations.(eqtag).h0_param_indices) + if ~isempty(equations.(eqtag).h0_param_indices) DynareModel.params(equations.(eqtag).h0_param_indices) = .0; end end @@ -145,7 +145,7 @@ for e=1:number_of_pac_eq if ~isempty(h1) DynareModel.params(equations.(eqtag).h1_param_indices) = h1; else - if isfield(equations.(eqtag), 'h1_param_indices') && ~isempty(equations.(eqtag).h1_param_indices) + if ~isempty(equations.(eqtag).h1_param_indices) DynareModel.params(equations.(eqtag).h1_param_indices) = .0; end end