diff --git a/matlab/homotopy1.m b/matlab/homotopy1.m index db11e1de418dc1022c93a1f742adba45d283cd52..23347677a5be65e2afc2448f52b6debaf6225c29 100644 --- a/matlab/homotopy1.m +++ b/matlab/homotopy1.m @@ -77,9 +77,5 @@ function homotopy1(values, step_nbr) oo_.exo_steady_state(values(ix,2)) = points(ix,i); oo_.exo_det_steady_state(values(ixd,2)) = points(ixd,i); - try - steady_; - catch - error('HOMOTOPY mode 1: failed') - end + steady_; end diff --git a/matlab/homotopy2.m b/matlab/homotopy2.m index eb53778d2a428d2322374a214d9be802744c72a3..c66213f070811d5ed9018743687fe351cdc3d6fc 100644 --- a/matlab/homotopy2.m +++ b/matlab/homotopy2.m @@ -100,11 +100,7 @@ function homotopy2(values, step_nbr) disp([ 'HOMOTOPY mode 2: lauching solver with ' strtrim(varname) ' = ' num2str(v) ' ...']) - try - steady_; - catch - error('HOMOTOPY mode 2: failed') - end + steady_; end end \ No newline at end of file diff --git a/matlab/homotopy3.m b/matlab/homotopy3.m index 15148fd227d2ad9871660a45335d7eac9d177361..6cd4d98b4f1c85887497aac947ea7e8f72352aee 100644 --- a/matlab/homotopy3.m +++ b/matlab/homotopy3.m @@ -103,7 +103,8 @@ function homotopy3(values, step_nbr) end oldvalues = curvalues; inc = 2*inc; - catch + catch E + disp(E.message) disp('HOMOTOPY mode 3: failed step, now dividing increment by 2...') inc = inc/2; oo_.steady_state = old_ss;