From ee91c7654ff753728850e68366c60fe1be33ebb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Scylla=29?= Date: Thu, 28 Nov 2013 10:51:20 +0100 Subject: [PATCH] Return a human readable message error if order=0 (stoch_simul). --- matlab/stoch_simul.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/matlab/stoch_simul.m b/matlab/stoch_simul.m index 40de6df2c..ed31a2d78 100644 --- a/matlab/stoch_simul.m +++ b/matlab/stoch_simul.m @@ -19,6 +19,10 @@ function info=stoch_simul(var_list) global M_ options_ oo_ it_ +if isequal(options_.order,0) + error('stoch_simul:: The order of the Taylor approximation cannot be 0!') +end + test_for_deep_parameters_calibration(M_); dr = oo_.dr;